Skip to main content
POST
Send SMS
Sends a single SMS from one of your imported numbers. Works on Twilio and Telnyx. Useful for one-off messages, status updates, or reminders that do not need a phone call.
This endpoint uses to for the recipient. The outbound-call endpoint (POST /v1/calls/outbound) uses to_number instead. They are different field names for the same idea - sending to_number here will fail with a missing-field error. Double-check when copying between the two.

Request

Body parameters

Response

201 Created:
Status updates come asynchronously via your carrier’s status callbacks. Telnyx does not report delivery status yet, so a message sent from a Telnyx number stays at sent. Final status (delivered, failed, undelivered) reflects in the message record within ~30 seconds.

Reply behaviour

If the recipient replies, the agent automatically answers using its system_prompt. There is no separate reply-handling system. For per-message context, pass a context object with reply_context - the agent uses it when answering replies to that message. Otherwise, put any standing context the agent needs directly in its system_prompt before sending. See Send SMS concept page for details.

Errors