Skip to content

Update Voice

Endpoint used to update the voice settings of the AI agent.

Terminal window
curl --request PUT \
--url https://chat.api.toolzz.com.br/api/v1/bot/voice/{botId} \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"visualIconId": "uuid",
"visualType": "<string>",
"transcriptionCredentialId": "uuid",
"voiceCredentialId": "uuid",
"language": "<string>",
"firstMessage": "<string>",
"fallbackPhrase": "<string>",
"voiceId": "<string>",
"voiceImage": "<url>",
"voiceName": "<string>",
"voiceDescription": "<string>",
"insertedLabsId": "<string>",
"model": "<string>",
"voiceModel": "<string>",
"deepgramModel": "<string>",
"primaryColor": "<string>",
"buttonColor": "<string>",
"webPrimaryColor": "<string>",
"webButtonColor": "<string>",
"theme": "<string>",
"textTitle": "<string>",
"textDescription": "<string>",
"waitTime": 123,
"callTime": 123,
"voicePrompt": "<string>",
"webhookUrl": "<url>"
}
'
{
"id": "uuid",
"botId": "uuid",
"visualIconId": "uuid",
"visualType": "<string>",
"language": "<string>",
"voiceModel": "<string>",
"deepgramModel": "<string>",
"primaryColor": "<string>",
"theme": "<string>",
"textTitle": "<string>",
"waitTime": 123,
"callTime": 123,
"bot": {
"id": "uuid",
"name": "<string>",
"prompt": "<string>",
"metaprompt": "<string>"
},
"visualIcon": {
"id": "uuid",
"url": "<url>",
"extension": "<string>"
},
"voiceCredential": {
"id": "uuid",
"name": "<string>",
"integration": {
"name": "<string>",
"slug": "<string>",
"file": {
"url": "<url>"
}
}
},
"voicePrompt": "<string>"
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
botIdUUIDUnique identifier of the agent.Yes
ParameterTypeDescriptionRequired
visualIconIdUUIDID of the visual icon file for the voice interface.No
visualTypeStringVisual style of the component (e.g., “compact”, “button”, “full”).Yes
transcriptionCredentialIdUUIDCredential ID for the transcription service (STT).No
voiceCredentialIdUUIDCredential ID for the voice synthesis service (TTS).Yes
languageStringDefault language code (e.g., “ptbr”, “enus”).Yes
voiceModelStringAI model for audio processing (e.g., “gemini-2.0-flash”).Yes
deepgramModelStringSpecific model for the Deepgram provider, if applicable.No
primaryColorStringPrimary color of the voice interface (Hexadecimal).Yes
buttonColorStringVoice action button color (Hexadecimal).Yes
themeStringInterface theme (e.g., “light”, “dark”).Yes
textTitleStringTitle displayed on the voice component.Yes
waitTimeNumberWait time (in seconds) before starting processing.Yes
callTimeNumberMaximum duration of the call or interaction (in minutes).Yes
voicePromptStringSpecific behavior instructions for the voice interaction.No
webhookUrlURLURL for sending events and logs of the voice interaction.No
KeyTypeDescription
idUUIDUnique identifier of the voice configuration.
botIdUUIDIdentifier of the Agent to which this configuration belongs.
visualIconIdUUIDID of the image file used as the voice assistant icon.
visualTypeStringVisual style of the component (e.g., compact, full).
languageStringConfigured language for the interaction (e.g., ptbr).
voiceModelStringVoice processing model (e.g., gemini-2.0-flash).
deepgramModelStringSpecific transcription model for Deepgram integration.
primaryColorStringPrimary color of the voice interface (Hexadecimal).
themeStringVisual theme of the interface (light or dark).
textTitleStringTitle displayed in the header of the voice component.
waitTimeNumberConfigured wait time before the response.
callTimeNumberCall time limit in minutes.
botObjectObject containing basic data and the metaprompt of the linked Agent.
bot.nameStringAgent’s name.
bot.creativePrecisionNumberIA accuracy/creativity level.
visualIconObjectIcon file metadata (URL, size, extension).
voiceCredentialObjectDetails of the credential used for the voice service.
voiceCredential.nameStringName assigned to the credential (e.g., tzz-voice).
voiceCredential.integrationObjectService provider information (e.g., ElevenLabs).
voiceCredential.integration.slugStringTextual identifier of the provider.
voicePromptStringSpecific behavior instructions for the voice.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page