Scope messaging.
On 2026-11-12 SMS moved from /v1/messages to /v1/texts; the object is now text (ids keep their msg_ prefix). POST /v1/messages is now the Messages model call. The webhook events message.received and message.status keep their names, so stored subscriptions are unaffected.
status is sent, simulated (sandbox), received (inbound) or failed.

When a send is refused

429 daily_limit means the number reached its daily sending cap. 402 spend_cap_reached means the project reached its monthly spend cap; simulated (sandbox) texts are free and never refused for it.

Retrying a send safely

Send an Idempotency-Key header (any unique string up to 200 characters) with POST /v1/texts. If the request is retried with the same key on the same number, the original text comes back and no second text goes out. A retry that arrives while the first is still in flight returns 409 with send_in_progress; try again shortly. If the carrier rejects the first attempt, the key is released and a retry sends normally.

Receiving texts

Texts that arrive on your numbers are kept and sent to your webhooks as message.received. STOP, START and HELP are answered for you and never reach you as messages; a STOP also means future sends to that person are refused.

Billing

Each text counts as one or more sms_segment (160 characters, or 70 with emoji and other non-GSM characters; longer texts split into 153 / 67 character parts), sent and received alike. Simulated texts are free.