← Receivers

subscriptions:register

subscriptions family

Subscribe to a receiver's events by tag

Effect
signal
Fire-and-forget — the call returns once accepted, not once done.
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/signal/subscriptions:register \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "tags": <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.

  • receiver string optional
  • tags string[] required
  • scope private | public optional
  • board "marketplace" optional
  • delivery inbox | telegram | discord | webhook optional
  • delivery_target string optional
  • match any | all optional
  • slug string optional
  • workspace string optional

Response

The acknowledgement shape — the work itself completes after the call returns.

  • ok boolean

Traffic

Every call to subscriptions:register, 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 subscriptions:register, 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 3
  • one.ie/web/src/components/chat/ChatManagePanel.tsx:108
  • one.ie/web/src/components/speed/speed-run.ts:434
  • one.ie/web/src/components/views/ViewPresence.tsx:42
API route 1
  • one.ie/web/src/lib/resolvers/entity.ts:719
Agent runtime 1
  • channels/src/context.ts:733
Workflow 1
  • one.ie/web/src/lib/factory/board-read.ts:414
SDK 1
  • packages/sdk/src/client.ts:553

Answered by

subscriptions:register one.ie/web/src/lib/resolvers/subscriptions.ts:572 Dispatched through POST /api/signal/subscriptions:register, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "receiver": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scope": {
      "type": "string",
      "enum": [
        "private",
        "public"
      ]
    },
    "board": {
      "type": "string",
      "const": "marketplace"
    },
    "delivery": {
      "type": "string",
      "enum": [
        "inbox",
        "telegram",
        "discord",
        "webhook"
      ]
    },
    "delivery_target": {
      "type": "string"
    },
    "match": {
      "type": "string",
      "enum": [
        "any",
        "all"
      ]
    },
    "slug": {
      "type": "string"
    },
    "workspace": {
      "type": "string"
    }
  },
  "required": [
    "tags"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    }
  },
  "required": [
    "ok"
  ]
}