ONE social:review
← Receivers

social:review

social family

The holder of a review link reads the posts it covers as each network will show them, approves one, or asks for changes with a comment. No account: the token is the authority, only for the posts and the one workspace it names, until it expires or is revoked. An approval writes the same stamp a person's does (these exact words and media, so an edit afterwards voids it), stamped client:<email>. The page sends back the fingerprint it showed; if the words changed meanwhile nothing is stamped (changed_since_seen). An attested agent or a bare API key is refused even with a token.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
public
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/social:review \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "token": <string> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • token string required
  • action view | decide optional Default view when no decision is given.
  • kind variant | post optional Default variant.
  • id string optional decide: the version's id from view.
  • decision approve | changes optional
  • seen string optional decide: the `seen` fingerprint view gave for that version.
  • comment string optional What to change (needed for changes), or a note with an approval. At most 2,000 characters.

Response

What comes back from the call.

  • ok boolean
  • error string not_found · expired · revoked · not_seen · comment_required · changed_since_seen: … · not_decidable: … · instagram_media_required: … · moved_while_deciding
  • workspace string
  • reviewer string | object
  • expiresAt number
  • posts object[]
  • id string
  • kind variant | post
  • status string
  • approvedBy string
  • postId string

Traffic

Every call to social:review, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names social:review, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 3
  • one.ie/web/src/lib/receiver-index.generated.ts:462
  • one.ie/web/src/lib/resolvers/social.ts:144
  • one.ie/web/src/pages/api/social/review/[token].ts:31
SDK 1
  • packages/sdk/src/social.ts:44
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "token": {
      "type": "string"
    },
    "action": {
      "description": "Default view when no decision is given.",
      "type": "string",
      "enum": [
        "view",
        "decide"
      ]
    },
    "kind": {
      "description": "Default variant.",
      "type": "string",
      "enum": [
        "variant",
        "post"
      ]
    },
    "id": {
      "description": "decide: the version's id from view.",
      "type": "string"
    },
    "decision": {
      "type": "string",
      "enum": [
        "approve",
        "changes"
      ]
    },
    "seen": {
      "description": "decide: the `seen` fingerprint view gave for that version.",
      "type": "string"
    },
    "comment": {
      "description": "What to change (needed for changes), or a note with an approval. At most 2,000 characters.",
      "type": "string"
    }
  },
  "required": [
    "token"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "description": "not_found · expired · revoked · not_seen · comment_required · changed_since_seen: … · not_decidable: … · instagram_media_required: … · moved_while_deciding",
      "type": "string"
    },
    "workspace": {
      "type": "string"
    },
    "reviewer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "properties": {
            "email": {
              "type": "string"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "email",
            "name"
          ]
        }
      ]
    },
    "expiresAt": {
      "type": "number"
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "versions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "variant",
                    "post"
                  ]
                },
                "id": {
                  "type": "string"
                },
                "platform": {
                  "type": "string"
                },
                "format": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                },
                "media": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "url"
                    ]
                  }
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string"
                },
                "scheduledAt": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "approval": {
                  "type": "string",
                  "enum": [
                    "approved",
                    "auto",
                    "unapproved",
                    "edited"
                  ]
                },
                "approvedBy": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "seen": {
                  "type": "string"
                },
                "decidable": {
                  "type": "boolean"
                }
              },
              "required": [
                "kind",
                "id",
                "platform",
                "format",
                "content",
                "media",
                "title",
                "status",
                "scheduledAt",
                "approval",
                "approvedBy",
                "seen",
                "decidable"
              ]
            }
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "author": {
                  "type": "string"
                },
                "authorKind": {
                  "type": "string"
                },
                "body": {
                  "type": "string"
                },
                "verdict": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "at": {
                  "type": "number"
                },
                "variantId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "author",
                "authorKind",
                "body",
                "verdict",
                "at",
                "variantId"
              ]
            }
          }
        },
        "required": [
          "id",
          "versions",
          "notes"
        ]
      }
    },
    "id": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "variant",
        "post"
      ]
    },
    "status": {
      "type": "string"
    },
    "approvedBy": {
      "type": "string"
    },
    "postId": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}