Create an agent
post/assistants
Headers
Authorizationstring required
Bearer authentication
Request body
end_call_reasonsstring[]
Deprecated: use end_call_reasons_v2 instead. Custom conditions that trigger automatic call termination (simple string array format).
descriptionstring
Agent description.
phone_numberstring
The phone number attached to the agent.
external_webhook_urlstring
URL of the webhook that should receive data after the call, such as the transcript.
is_recordingboolean
Whether the conversation should be recorded.
type'outbound' | 'inbound' | 'widget' required
Agent type.
namestring required
Agent name.
inbound_call_webhook_urlstring
The URL for your inbound webhook. For more details on inbound webhooks, see <a href="/webhooks#inbound-webhook">Inbound webhook</a>.
Response
200
statusstring
Whether the request was successful.