Create an agent

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
agentobjectRequired
namestringRequired
Agent name.
typeenumRequired
Agent type.
Allowed values:
descriptionstringOptional
Agent description.
end_call_reasonslist of stringsOptional
Custom conditions that trigger automatic call termination. When the AI agent detects one of these conditions during a conversation, it will say a brief farewell and end the call.
external_webhook_urlstringOptional
URL of the webhook that should receive data after the call, such as the transcript.
inbound_call_webhook_urlstringOptional

The URL for your inbound webhook. For more details on inbound webhooks, see About inbound call webhooks.

is_recordingbooleanOptional
Whether the conversation should be recorded.
max_durationobjectOptional
phone_numberstringOptional
The phone number attached to the agent.
voicemail_messageobjectOptional

Configuration for the message left when a voicemail is detected. Requires greeting_message_mode to be set to human.

Response

200
statusstring
Whether the request was successful.
responseobject
detailsobject

Errors

400
Bad Request Error