ONE voice:answer
← Receivers

voice:answer

voice family

What a call the AI front desk answered on a workspace's own phone number leaves behind. step open: the caller is filed as a person in the workspace the called number belongs to (an existing contact holding that phone, else a new lead) tagged phone-call. step end: the call's transcript and how it ended (answered or transferred to a person) are kept on that person and as a phone-call event. Only the channels voice-inbound and voice-status doors, carrying their HMAC (SMS_ATTEST_SECRET) over what Twilio signed; the workspace is read from the called number, never from the caller, and a workspace that has not switched answering on (sms:create answerCalls) is refused. A CallSid is acted on once per step.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
write
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.
Version
1.0.0
Pin this to keep a contract stable; additive bumps never break callers.

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/voice:answer \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "step": <open | end>, "callSid": <string>, "from": <string>, "to": <string>, "attest": <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.

  • step open | end required open: the call was picked up by the desk · end: the call is over
  • callSid string required Twilio CallSid: acted on once per step
  • from string required The caller's number (Twilio From); a hidden or non-E.164 caller is not filed
  • to string required The workspace's number that was called (Twilio To): the workspace is read from it
  • outcome string optional end only: answered (the desk handled it) · transferred (a person was rung)
  • transcript string optional end only: the call's transcript, one line per turn; at most 6000 characters are kept
  • attest string required The voice doors' HMAC-SHA256 (SMS_ATTEST_SECRET) over step, callSid, from, to, outcome and transcript; without it nothing runs

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • step open | end
  • duplicate boolean true: this step of this call was already handled
  • person string The caller's person id in the workspace
  • error string forbidden (not a service caller) · unattested (no or wrong door HMAC) · bad_step · unknown_number · not_enabled · no_db

Traffic

Every call to voice:answer, 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 voice:answer, 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/receiver-index.generated.ts:568
  • one.ie/web/src/lib/voice/phone-answer.ts:4
Agent runtime 1
  • channels/src/voice-inbound.ts:36
→

Answered by

voice:answer one.ie/web/src/lib/resolvers/voice.ts:178 Dispatched through POST /api/ask/voice:answer, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "step": {
      "type": "string",
      "enum": [
        "open",
        "end"
      ],
      "description": "open: the call was picked up by the desk · end: the call is over"
    },
    "callSid": {
      "type": "string",
      "description": "Twilio CallSid: acted on once per step"
    },
    "from": {
      "type": "string",
      "description": "The caller's number (Twilio From); a hidden or non-E.164 caller is not filed"
    },
    "to": {
      "type": "string",
      "description": "The workspace's number that was called (Twilio To): the workspace is read from it"
    },
    "outcome": {
      "description": "end only: answered (the desk handled it) · transferred (a person was rung)",
      "type": "string"
    },
    "transcript": {
      "description": "end only: the call's transcript, one line per turn; at most 6000 characters are kept",
      "type": "string"
    },
    "attest": {
      "type": "string",
      "description": "The voice doors' HMAC-SHA256 (SMS_ATTEST_SECRET) over step, callSid, from, to, outcome and transcript; without it nothing runs"
    }
  },
  "required": [
    "step",
    "callSid",
    "from",
    "to",
    "attest"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "step": {
      "type": "string",
      "enum": [
        "open",
        "end"
      ]
    },
    "duplicate": {
      "description": "true: this step of this call was already handled",
      "type": "boolean"
    },
    "person": {
      "description": "The caller's person id in the workspace",
      "type": "string"
    },
    "error": {
      "description": "forbidden (not a service caller) · unattested (no or wrong door HMAC) · bad_step · unknown_number · not_enabled · no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}