← Receivers

space:post

space family

Post a message to a Space — authenticated member or public Space; stamps space:<slug> tag so the message appears in the Space's thread on slug/in alongside every channel's conversation

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
member
The class of authority the caller must already hold, decided from the attested context with no round trip.
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/space:post \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "space": <string>, "content": <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.

  • space string required
  • content string required
  • tags string[] optional
  • replyTo string optional

Response

What comes back from the call.

  • ok boolean
  • id string
  • ts number
  • error string

Traffic

Every call to space:post, 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 space:post, 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 2
  • one.ie/web/src/components/views/RowDoors.tsx:37
  • one.ie/web/src/pages/ehc/[cyp]/notes.astro:8
API route 4
  • one.ie/web/src/lib/ehc/clinician-notes.ts:4
  • one.ie/web/src/lib/receiver-index.generated.ts:361
  • one.ie/web/src/lib/resolvers/messaging.ts:1081
  • one.ie/web/src/lib/threads.ts:171
Agent runtime 1
  • channels/src/tools/ehc.ts:34
Workflow 1
  • one.ie/web/src/lib/factory/workflows.ts:648
MCP 1
  • chat_send · packages/mcp/src/tools/messaging.ts:60
Docs 1
  • one.ie/web/src/content/blog/one-of-them-can-wait-ninety-days.md:48
→

Answered by

space:post one.ie/web/src/lib/resolvers/messaging.ts:1184 Dispatched through POST /api/ask/space:post, after the envelope validates the payload.

space family · 3 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "space": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "replyTo": {
      "type": "string"
    }
  },
  "required": [
    "space",
    "content"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "ts": {
      "type": "number"
    },
    "error": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}