Sign in

Create or update an agent

View as Markdown
PUT/agent/create_update_agent

Creates the agent when it does not exist yet, and updates it when it does. This is the recommended way to write agent configuration.

Auth

Authentication required.

Parameters

No parameters.

Request body

RequiredContent-TypeShape
Yesapplication/jsonCreateUpdateAgentRequest
NameTypeRequiredDescription
bot_namestringYes—
agent_dataobjectNoDefault {}.
voice_dataobjectNoDefault {}.
transferobjectNoDefault {}.
webhookWebhookFieldNoDefault {}.
webhook.authWebhookAuth | nullNo—
webhook.auth.typeenum(none | bearer | jwt | api_key)NoDefault "none".
webhook.auth.sourcestring | nullNo—
webhook.auth.header_namestring | nullNo—
webhook.auth.schemestring | nullNo—
webhook.auth.tokenstring | nullNo—
webhook.auth.api_keystring | nullNo—
agent_idstring | nullNo—

Responses

StatusDescriptionContent-TypeShape
200Successful Responseapplication/jsonunknown
422Validation Errorapplication/jsonHTTPValidationError