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.
The
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
| Status | Description |
|---|---|
202 Accepted | Message will be sent and a conversation session will be created. |
400 Bad Request | Invalid body, missing fields, bad E.164 format, or agent_number not provisioned for the project. |
401 Unauthorized | Missing or invalid X-PolyAi-Auth-Token. |
403 Forbidden | API key account does not match the connector’s account. |
404 Not Found | Connector not found, or no Twilio numbers provisioned for this project. |
429 Too Many Requests | Per-project rate limit exceeded. |
500 Internal Server Error | Unexpected server error. |
202 response has an empty body.
Example
| Direction | Message |
|---|---|
| Agent → | Hi Jane, your appointment is confirmed for tomorrow at 2pm. Reply to this message if you need to reschedule. |
| ← User | Can I move it to 3pm instead? |
| Agent → | Of course — I’ve rescheduled your appointment to 3pm tomorrow. See you then! |
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
Send an outbound SMS

