ONE social:review-link
← Receivers

social:review-link

social family

An owner or admin makes a link a client can open with no account to approve, or ask for changes on, the posts it names — and nothing else. The link is one workspace, expires (7 days by default, at most 30) and can be revoked; only its hash is kept, so the link is shown once, at mint. A person only: an agent or a bare key is refused (a link is an approval handed on). action list shows the workspace's links (never the token); action revoke ends one.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
update_group
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
no
Not safe to blind-retry — dedupe on the envelope idempotencyKey.

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-link \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "action": <mint | list | revoke>, "workspace": <string>, "postIds": <string[]>, "email": <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.

  • action mint | list | revoke optional Default mint.
  • workspace string optional Defaults to the caller's own. The caller is walked to it (update_group), never trusted.
  • postIds string[] optional mint: the master post ids the link covers (each post's versions on every network come with it). At most 50.
  • email string optional mint: the reviewer's email. An approval through the link is stamped client:<email>.
  • name string optional mint: the reviewer's name, shown on their notes.
  • ttlDays number optional mint: days until it expires. Default 7, at most 30.
  • id string optional revoke: the link id from mint or list.

Response

What comes back from the call.

  • ok boolean
  • error string forbidden: … · bad_email · no_posts · too_many_posts · bad_ttl · not_found
  • workspace string
  • id string
  • token string mint only, shown once. Never stored; only its SHA-256 is.
  • path string
  • url string mint: the page the reviewer opens.
  • expiresAt number
  • posts number
  • note string
  • links object[]
  • truncated boolean list: true when it stopped at 200 links.

Traffic

Every call to social:review-link, 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-link, 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

UI 1
  • one.ie/web/src/components/social/SocialApprovalQueue.tsx:150
API route 1
  • one.ie/web/src/lib/receiver-index.generated.ts:463
CLI 1
  • packages/cli/src/social.ts:409
SDK 1
  • packages/sdk/src/social.ts:43
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "action": {
      "description": "Default mint.",
      "type": "string",
      "enum": [
        "mint",
        "list",
        "revoke"
      ]
    },
    "workspace": {
      "description": "Defaults to the caller's own. The caller is walked to it (update_group), never trusted.",
      "type": "string"
    },
    "postIds": {
      "description": "mint: the master post ids the link covers (each post's versions on every network come with it). At most 50.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "email": {
      "description": "mint: the reviewer's email. An approval through the link is stamped client:<email>.",
      "type": "string"
    },
    "name": {
      "description": "mint: the reviewer's name, shown on their notes.",
      "type": "string"
    },
    "ttlDays": {
      "description": "mint: days until it expires. Default 7, at most 30.",
      "type": "number"
    },
    "id": {
      "description": "revoke: the link id from mint or list.",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "description": "forbidden: … · bad_email · no_posts · too_many_posts · bad_ttl · not_found",
      "type": "string"
    },
    "workspace": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "token": {
      "description": "mint only, shown once. Never stored; only its SHA-256 is.",
      "type": "string"
    },
    "path": {
      "type": "string"
    },
    "url": {
      "description": "mint: the page the reviewer opens.",
      "type": "string"
    },
    "expiresAt": {
      "type": "number"
    },
    "posts": {
      "type": "number"
    },
    "note": {
      "type": "string"
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "posts": {
            "type": "number"
          },
          "createdBy": {
            "type": "string"
          },
          "createdAt": {
            "type": "number"
          },
          "expiresAt": {
            "type": "number"
          },
          "revokedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "uses": {
            "type": "number"
          },
          "lastUsedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "live",
              "expired",
              "revoked"
            ]
          }
        },
        "required": [
          "id",
          "email",
          "name",
          "posts",
          "createdBy",
          "createdAt",
          "expiresAt",
          "revokedAt",
          "uses",
          "lastUsedAt",
          "state"
        ]
      }
    },
    "truncated": {
      "description": "list: true when it stopped at 200 links.",
      "type": "boolean"
    }
  },
  "required": [
    "ok"
  ]
}