Initiates an outbound call from an assistant to a specified phone number. This endpoint is protected and requires authentication.
/twiml
webhook, passing along the parameters you provide here as metadata. This allows the system to route the call to the correct assistant and begin the conversation.
assistant_id
(integer, required): The ID of the assistant that should make the call.to_phone_number
(string, required): The destination phone number to call, in E.164 format.welcome_message
(string, optional): A custom welcome message for the assistant to say at the beginning of the call. If not provided, the assistant’s default greeting will be used.agenda
(string, optional): A specific topic or goal for the call. This can be used to guide the assistant’s conversation.200 OK
status with a JSON object containing the call_sid
from Twilio, confirming that the call has been initiated.
Request model for initiating an outbound call.
Successful Response
Response model for initiating an outbound call.