ONE agent-inbox:send
← Receivers

agent-inbox:send

agent-inbox family

Replies AS an agent to one message it received: an email leaves from the agent's own mailbox (mail:send's checks and caps, counted against the owner), a note goes to its sender from the agent; typed by the agent's owner in their own browser, signed in with their key or passkey, nobody else and never a key

Effect
signal
Fire-and-forget — the call returns once accepted, not once done.
Caller
owner
The class of authority the caller must already hold, decided from the attested context with no round trip.
Reversible
no
This cannot be undone. Dry-run it first where the contract allows.

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/agent-inbox:send \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "agent": "one", "workspace": "one", "replyTo": "3f2a…", "text": "Thanks, booked for Tuesday." }}'

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.

  • agent string required
  • workspace string optional The workspace the agent lives in; narrows the owner lookup, authorises nothing
  • replyTo string required The id of a message this agent received (agent-inbox:list)
  • text string required What the owner typed; up to 8,000 characters for a note, 50,000 for an email

Response

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

  • ok boolean
  • channel email | note
  • to string
  • from string
  • messageId string
  • id string
  • error string sign_in | forbidden | agent_key | not_found | not_owner | key_required | owner_unreadable | inbox_unreadable | held_for_person | reply_to_required | text_required | owner_unproven, or any mail:send refusal
  • reason string

Traffic

Every call to agent-inbox:send, 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 agent-inbox:send, 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/agents/AgentInbox.tsx:55
API route 4
  • one.ie/web/src/lib/act-as.ts:221
  • one.ie/web/src/lib/receiver-index.generated.ts:22
  • one.ie/web/src/lib/resolvers/agent-inbox.ts:112
  • one.ie/web/src/lib/resolvers/mail.ts:102
→

Answered by

agent-inbox:send one.ie/web/src/lib/resolvers/agent-inbox.ts:109 Dispatched through POST /api/signal/agent-inbox:send, after the envelope validates the payload.

agent-inbox family · 1 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "agent": {
      "type": "string"
    },
    "workspace": {
      "description": "The workspace the agent lives in; narrows the owner lookup, authorises nothing",
      "type": "string"
    },
    "replyTo": {
      "type": "string",
      "description": "The id of a message this agent received (agent-inbox:list)"
    },
    "text": {
      "type": "string",
      "description": "What the owner typed; up to 8,000 characters for a note, 50,000 for an email"
    }
  },
  "required": [
    "agent",
    "replyTo",
    "text"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "channel": {
      "type": "string",
      "enum": [
        "email",
        "note"
      ]
    },
    "to": {
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "messageId": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "error": {
      "description": "sign_in | forbidden | agent_key | not_found | not_owner | key_required | owner_unreadable | inbox_unreadable | held_for_person | reply_to_required | text_required | owner_unproven, or any mail:send refusal",
      "type": "string"
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}