POST
/
api
/
v1
/
bot
/
call-phone
/
{id}
curl --request POST \
  --url https://chat.api.toolzz.com.br/api/v1/bot/call-phone/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone": "<string>",
  "language": "<string>",
  "voiceId": "<string>",
  "credentialId": "<string>",
  "model": "<string>",
  "firstMessage": "<string>",
  "prompt": "<string>"
}'
{
  "message": "<string>",
  "response": {
    "message": "<string>",
    "roomName": "<string>",
    "participantIdentity": "<string>",
    "status": true
  }
}
id
string

Id of the bot

phone
string
required

Phone to call

language
string

Language of the bot

voiceId
string

Id of the voice

voiceId
string

Id of the voice

credentialId
string

Id of voice credential

model
string

model of the voice provider

firstMessage
string

firts interaction of the voice with user

prompt
string

simple prompt of the voice

Response Description

Below you will see the description of the bot response

message
string
required

Status message of the API response.

response
object
required

Segurança

Para acessar este endpoint, é necessário enviar um token de acesso válido através do cabeçalho de autorização (Authorization) da requisição. Além disso, a API é protegida por outras medidas de segurança para proteger os dados dos usuários.