← Receivers

agent:register-ceiling

agent family

The agent's claimed owner, in a signed-in session, registers the agent's on-chain spend ceiling with pay — pay checks the object bounds this agent and is owned by that owner's own address

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_workspace
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
no
This cannot be undone. Dry-run it first where the contract allows.
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/agent:register-ceiling \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "agentId": "acme--research-agent", "objectId": "0x5f3a" }}'

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.

  • agentId string required The agent's actor id — the exact string its on-chain SpendCeiling carries as agent_id
  • objectId string required The SpendCeiling object id (0x + hex), already handed to the owner with transfer_ownership
  • replace boolean optional Replace a ceiling already registered for this agent. Default false: a second registration is refused, not overwritten

Response

What comes back from the call.

  • ok boolean
  • agentId string
  • objectId string
  • owner string The owner's address pay verified as the ceiling's live on-chain owner
  • status string pay's registry outcome: created | unchanged | replaced
  • enabled boolean false until the owner re-sets the bounds with update_ceiling — transfer_ownership disables a ceiling, and escrow answers CEILING_DISABLED until then
  • error string A refusal by name: human_session_required | not_owner | unclaimed | agent_owns_itself | no_owner_address | read_failed | pay_unconfigured | pay_unreachable | ceiling_not_owned_by_human | ceiling_bounds_another_agent | not_a_spend_ceiling | ceiling_already_registered | ceiling_not_found | pay_unavailable | pay_refused
  • stage string On a pay refusal, which call refused: agent (the pay record) | register
  • payCode string | null pay's own error code, verbatim, beside the named refusal
  • closed string mark on a registration, warn on every refusal

Traffic

Every call to agent:register-ceiling, 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:register-ceiling, 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/act-as.ts:199
  • one.ie/web/src/lib/receiver-index.generated.ts:23
→

Answered by

agent:register-ceiling one.ie/web/src/lib/resolvers/market.ts:1464 Dispatched through POST /api/ask/agent:register-ceiling, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "agentId": {
      "type": "string",
      "description": "The agent's actor id — the exact string its on-chain SpendCeiling carries as agent_id"
    },
    "objectId": {
      "type": "string",
      "description": "The SpendCeiling object id (0x + hex), already handed to the owner with transfer_ownership"
    },
    "replace": {
      "description": "Replace a ceiling already registered for this agent. Default false: a second registration is refused, not overwritten",
      "type": "boolean"
    }
  },
  "required": [
    "agentId",
    "objectId"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "agentId": {
      "type": "string"
    },
    "objectId": {
      "type": "string"
    },
    "owner": {
      "description": "The owner's address pay verified as the ceiling's live on-chain owner",
      "type": "string"
    },
    "status": {
      "description": "pay's registry outcome: created | unchanged | replaced",
      "type": "string"
    },
    "enabled": {
      "description": "false until the owner re-sets the bounds with update_ceiling — transfer_ownership disables a ceiling, and escrow answers CEILING_DISABLED until then",
      "type": "boolean"
    },
    "error": {
      "description": "A refusal by name: human_session_required | not_owner | unclaimed | agent_owns_itself | no_owner_address | read_failed | pay_unconfigured | pay_unreachable | ceiling_not_owned_by_human | ceiling_bounds_another_agent | not_a_spend_ceiling | ceiling_already_registered | ceiling_not_found | pay_unavailable | pay_refused",
      "type": "string"
    },
    "stage": {
      "description": "On a pay refusal, which call refused: agent (the pay record) | register",
      "type": "string"
    },
    "payCode": {
      "description": "pay's own error code, verbatim, beside the named refusal",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "closed": {
      "description": "mark on a registration, warn on every refusal",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}