Update an agent

Use this endpoint to update an agent's name, phone number, or other parameters.

Path parameters

model_idstringRequired

Agent ID. You can find it on the agent’s page in your dashboard.

Headers

AuthorizationstringRequired

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

Request

This endpoint expects an object.
agentobjectOptional
descriptionstringOptional
Agent description.
external_webhook_urlstringOptional
URL of the webhook that should receive data after the call, such as the transcript.
is_recordingbooleanOptional
Whether the conversation should be recorded.
max_durationobjectOptional
namestringOptional
Agent name.
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