Create an agent

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

Request

This endpoint expects an object.
agentobjectRequired
namestringRequired
Agent name.
typeenumRequired
Agent type.
Allowed values:
descriptionstringOptional
Agent description.
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.

Response

200
statusstring or null
Whether the request was successful.
responseobject or null
detailsobject or null

Errors