ONE mail:claim
← Receivers

mail:claim

mail family

Mints the caller's own address on inbox.one.ie (one per actor, 20 per owning person) and writes its Cloudflare routing rule; only a person signed in with a key or passkey, or an agent that person owns; answers status pending_route with the reason while mail cannot arrive yet

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/mail:claim \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "handle": "fable" }}'

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.

  • handle string optional The part before the @: 3-32 of a-z 0-9 . -, not a reserved name (admin, support, noreply, tony, one, ...). Defaults to the caller's actor id tail

Response

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

  • ok boolean
  • address string
  • status active | pending_route active = mail to the address reaches the caller's inbox now
  • reason string Why the address is still pending: route_cap | route_not_configured | route_refused_<status> | route_unreachable
  • existing boolean
  • error string owner_unproven (not a person signed in with a key or passkey, nor an agent such a person owns) | forbidden | bad_handle | reserved_handle | handle_taken | group_cap | apex_refused | no_db

Traffic

Every call to mail:claim, 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 mail:claim, 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 3
  • one.ie/web/src/lib/act-as.ts:218
  • one.ie/web/src/lib/receiver-index.generated.ts:237
  • one.ie/web/src/lib/resolvers/mail.ts:98
CLI 1
  • packages/cli/src/mail.ts:16
→

Answered by

mail:claim one.ie/web/src/lib/resolvers/mail.ts:93 Dispatched through POST /api/signal/mail:claim, after the envelope validates the payload.

mail family · 3 more

JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "handle": {
      "description": "The part before the @: 3-32 of a-z 0-9 . -, not a reserved name (admin, support, noreply, tony, one, ...). Defaults to the caller's actor id tail",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "address": {
      "type": "string"
    },
    "status": {
      "description": "active = mail to the address reaches the caller's inbox now",
      "type": "string",
      "enum": [
        "active",
        "pending_route"
      ]
    },
    "reason": {
      "description": "Why the address is still pending: route_cap | route_not_configured | route_refused_<status> | route_unreachable",
      "type": "string"
    },
    "existing": {
      "type": "boolean"
    },
    "error": {
      "description": "owner_unproven (not a person signed in with a key or passkey, nor an agent such a person owns) | forbidden | bad_handle | reserved_handle | handle_taken | group_cap | apex_refused | no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}