ONE world:grant-seat
← Receivers

world:grant-seat

world family

mcp

Seat an agent on a workspace it was never invited to, for a limited time, by the workspace owner's fingerprint. The door for `forbidden: <aid> does not run <workspace>`: an agent or a bare key is ASKED (fingerprint_required with approve.url for the owner to open, then call again with fingerprint_code); the ask names the agent, the workspace, the role and the days, and a changed field on the retry gets a NEW ask. A signed-in owner of the workspace does it directly. The seat is admin (the only role a seat row can give; owner is never granted here), ends by itself after `days` (1 to 365, default 90) and can be dropped with world:revoke-seat. It is an admin seat and nothing more: social approvals, rules and connections still ask a fingerprint, wallet and limit changes ask the workspace person's fingerprint too (an agent is asked, never refused), and every move of money out of the workspace still asks that fingerprint, each time, for the exact amount and destination, besides needing the owner's work contract. The same seat again answers already_seated with its role and end, and asks nobody; it names who granted the seat only to the workspace owner and to the seated agent itself.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_members
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/world:grant-seat \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "aid": "01a1bfca4d73d83a527f5d62", "workspace": "one", "role": "admin" }}'

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.

  • aid string required The agent to seat: its actor id (the aid of the key that was told it does not run the workspace).
  • workspace string required The workspace slug to seat it on (group:<slug> also accepted).
  • role string optional admin (the default, and the only role a seat row gives). owner is refused by name; member and viewer rows read as no seat, so they are refused too.
  • days number optional How long the seat lasts, 1 to 365, default 90. The approval card shows the end date.

Response

What comes back from the call.

  • ask any error fingerprint_required: the ask the person answers (action, what, challenge, expiresAt, methods)
  • approve object error fingerprint_required: the link the person opens to approve, and the code to retry with (fingerprint_code)
  • approver string error fingerprint_required: the workspace's person the ask is for
  • next string error fingerprint_required: what to tell the person and how to call again
  • reason string Why, in plain words, when the answer is a fingerprint ask or a refusal
  • closed string dissolve on a fingerprint ask (nothing changed), warn on a refusal
  • ok boolean
  • status granted | already_seated granted: the seat is written. already_seated: a live seat exists; role and expiresAt say which, nothing was changed and nobody was asked
  • aid string
  • workspace string
  • role string
  • days number
  • expiresAt number | null Unix seconds when the seat ends; null for a seat with no end
  • grantedBy string | null The person whose fingerprint made the grant
  • error string fingerprint_required · fingerprint_unavailable · no_approver · owner_never_granted · role_grants_nothing · bad_days · bad_request · seat_store_unavailable · unauthorized · no_db

Traffic

Every call to world:grant-seat, 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 world:grant-seat, 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 2
  • one.ie/web/src/lib/auth-plugins/fingerprint-ask.ts:328
  • one.ie/web/src/lib/world-seat-grant.ts:81
CLI 2
  • packages/cli/src/lib/receivers-index.generated.ts:659
  • packages/cli/src/lib/receivers.generated.ts:659
SDK 1
  • packages/sdk/src/receiver-layers.ts:1176
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "aid": {
      "type": "string",
      "description": "The agent to seat: its actor id (the aid of the key that was told it does not run the workspace)."
    },
    "workspace": {
      "type": "string",
      "description": "The workspace slug to seat it on (group:<slug> also accepted)."
    },
    "role": {
      "description": "admin (the default, and the only role a seat row gives). owner is refused by name; member and viewer rows read as no seat, so they are refused too.",
      "type": "string"
    },
    "days": {
      "description": "How long the seat lasts, 1 to 365, default 90. The approval card shows the end date.",
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    }
  },
  "required": [
    "aid",
    "workspace"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ask": {
      "description": "error fingerprint_required: the ask the person answers (action, what, challenge, expiresAt, methods)"
    },
    "approve": {
      "description": "error fingerprint_required: the link the person opens to approve, and the code to retry with (fingerprint_code)",
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "expiresAt": {
          "type": "number"
        }
      },
      "required": [
        "url",
        "code",
        "expiresAt"
      ]
    },
    "approver": {
      "description": "error fingerprint_required: the workspace's person the ask is for",
      "type": "string"
    },
    "next": {
      "description": "error fingerprint_required: what to tell the person and how to call again",
      "type": "string"
    },
    "reason": {
      "description": "Why, in plain words, when the answer is a fingerprint ask or a refusal",
      "type": "string"
    },
    "closed": {
      "description": "dissolve on a fingerprint ask (nothing changed), warn on a refusal",
      "type": "string"
    },
    "ok": {
      "type": "boolean"
    },
    "status": {
      "description": "granted: the seat is written. already_seated: a live seat exists; role and expiresAt say which, nothing was changed and nobody was asked",
      "type": "string",
      "enum": [
        "granted",
        "already_seated"
      ]
    },
    "aid": {
      "type": "string"
    },
    "workspace": {
      "type": "string"
    },
    "role": {
      "type": "string"
    },
    "days": {
      "type": "number"
    },
    "expiresAt": {
      "description": "Unix seconds when the seat ends; null for a seat with no end",
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "grantedBy": {
      "description": "The person whose fingerprint made the grant",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "description": "fingerprint_required · fingerprint_unavailable · no_approver · owner_never_granted · role_grants_nothing · bad_days · bad_request · seat_store_unavailable · unauthorized · no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}