provision
POST /v1/identities/{id}/phones. Answers 202, not 201: the number exists and can receive immediately, but outbound waits on a carrier registration decision.
The legal name of the deployment’s shared carrier registration; any other name is refused
validation_failed before anything is bought (your own brand cannot be registered yet).sole_prop only. Checked for shape, then discarded: no passcode is sent, and it is never stored.The agent inbound texts wake. Checked before the purchase;
null if the agent was deleted mid-purchase.list
GET /v1/identities/{id}/phones — including each number’s campaign/compliance status.
update
PATCH /v1/identities/{id}/phones/{phone_id}. Sets the agent inbound texts wake, or clears it with null. Each text that passes the guards then starts a session for that agent, as this persona, billed to your credits; earlier texts are not woken.
- The agent must hold the persona, or the call fails
validation_failed. - A deleted agent fails
not_found. - The woken agent can reply by text once the campaign is approved; each sent segment is billed (see
send).
release
DELETE /v1/identities/{id}/phones/{phone_id}. Irreversible at the carrier — the number returns to the pool and cannot be reclaimed.
send
POST /v1/identities/{id}/phones/{phone_id}/send. Answers a 202 receipt { accepted, from, to, sent_at }. Refused with compliance_pending until the carrier approves the campaign — that is a carrier rule, not ours. After that check each send is billed in credits per segment ($0.0129; pricing), from here, the API, the CLI and the agent’s phone.send tool alike; a balance below the price is refused insufficient_credits before the text goes out.