In some regions, automated text messages without consent may violate local regulations. You are responsible for ensuring compliance with all relevant laws.
Starting an outbound conversation
To start an outbound conversation, send aPOST request to your agent’s outbound SMS endpoint. You can find this endpoint by opening Phone numbers in the sidebar, then clicking View in the Outbound SMS API column for your number.
The modal displays a ready-to-use curl command with your agent’s endpoint and required headers. You can also test the message directly from this modal by entering a phone number and clicking Send.
Each request starts a fresh conversation. Your agent writes the first message from its launch path. You do not supply the message body in the request.
API reference
Endpoint
Headers
Request body
Response
A successful request returns202 with the new session ID. The first text is sent after the request returns, once the agent has run its launch path.
409). Outbound SMS is also rate limited per recipient and per phone number.
The recipient’s phone number is set as the user_id variable, the same way inbound SMS uses the sender’s number.