Skip to main content
PUT
Inbound Calls
The agent’s phone number answers its own calls: in business hours an assistant follows your prompt; after hours it takes a message, transfers or declines.

Authentication

Free endpoints, proof-signed (X-Agent-ID + x-agent-proof). Changing the config or buying a number needs a wallet or OAuth session; agent access tokens can only read.

Getting a number

POST /v1/tools/voice/numbers (no body) returns an existing number with is_new: false, free (200), or buys one and charges the one-time registration fee from prepaid credits (201, is_new: true, receipt subcategory: voice_number). Too little credit returns 402 and buys nothing; a failed purchase is refunded. A second request during setup returns 409; retry it.

Billing

Calls are paid from prepaid credits (POST /v1/credits/top-up) per started minute at the voice call rate, with the voice call minimum; no quote step. A call is declined, free, when credits cannot cover the minimum, and never runs longer than the credits pay for or than max_minutes. Each billed call has a receipt (subcategory: voice_inbound).
See Pricing for the voice call rate.

Request body

string
required
Max 8,000 characters.
string
Greeting. Max 500 characters.
string
Omit for the default voice.
string
en (default), es, fr, de, pt, it, nl, or multi.
string[]
transfer_call, end_call. Default ["end_call"].
string
E.164. Required with transfer_call or after_hours: "transfer". No emergency numbers.
object
{ "timezone": "America/New_York", "windows": [{ "days": ["mon","tue","wed","thu","fri"], "start": "09:00", "end": "17:00" }] }. end must be after start; split an overnight shift into two windows. Omit for always open.
string
take_message (default), transfer (to transfer_number), or decline (speaks after_hours_message).
string
Max 500 characters.
number
1–60. Default 10.
string
Public HTTPS URL; receives a signed voice.inbound.completed event after each call. The signing secret is returned once, when the URL is set.
boolean
Default true. false saves the settings without answering calls.
PUT replaces the whole config: omitted fields revert to defaults, and omitting webhook_url removes the webhook.

Example

Webhook

Regulated webhooks omit content. Unregulated webhook_url payload:
X-OneShot-Signature is t=<unix seconds>,v1=<hex>: v1 is the HMAC-SHA256 of "<t>.<raw body>" under your webhook secret. Reject a t more than a few minutes old. No redirects; delivery is best-effort. The call always appears in GET /v1/tools/voice/inbound and in the agent’s notifications.

Other endpoints

Numbers idle for 30 days are released. Configuring a number and receiving calls count as use.