Send an outbound SMS
Send an SMS message and create a reply-enabled conversation session.
POST
Send an outbound SMS
Sends an SMS message to the specified user number and opens a new conversation session. The message behaves like a greeting message, so it is fully part of the conversation context that the agent can access. If the user replies, the agent handles the conversation as a normal SMS session.
This can lead to a conversation like:
Request
Headers
Your PolyAI API key, provisioned in the API keys tab under your account section in Agent Studio.
Connector ID for the target project. Contact your PolyAI representative.
Must be
application/json.Body
The plain-text message to send to the user.
Recipient phone number in E.164 format (e.g.
+14155551234).Sender phone number in E.164 format. Must be one of the Twilio numbers provisioned for your project. If omitted, the API picks one automatically from the numbers available for the connector token’s environment.
Response
The
202 response has an empty body.
Example
Error response format
All error responses return a JSON object:Notes
- Agent number selection — by default the API picks from the Twilio numbers provisioned for your project for the environment linked to the connector token. Pass
agent_numberto override; it must be one of the provisioned numbers or the request is rejected with a400. - Rate limits are applied per project. If you hit a
429, back off and retry. - Inactivity timeout — if the conversation is engaged (the user has replied), after 24 hours of inactivity a warning message is sent. If the user replies within 10 minutes, the conversation stays open and a new 24-hour inactivity timer starts. Otherwise the session terminates.
- Number availability — not every country supports SMS. Check Number availability & compliance for country-by-country details, throughput limits, and regulatory links before sending to a new region.
Last modified on June 26, 2026
Previous
OverviewEnable in-browser voice conversations with PolyAI agents using WebRTC and WebSocket signaling.
Next
Send an outbound SMS

