Start an outbound chat conversation
Create a new outbound WhatsApp or SMS conversation for a chat agent.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
agent_id
The ID of the chat agent that will handle the conversation.
channel
Outbound messaging channel.
Allowed values:
to_number
Recipient phone number in E.164 format.
from_number
Twilio sender phone number in E.164 format.
initial_message
Freeform opening message. For WhatsApp, this is only valid within the 24-hour customer service window.
template
Approved Twilio Content Template for WhatsApp outbound messages. Required outside the 24-hour customer service window, optional within it.
custom_variables
Custom prompt variables to inject into the agent configuration for this conversation.
Response
200
status
Whether the request was successful.
response
Errors
400
Bad Request Error