Buscar registro de chamada por ID
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}import requests
url = "https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"message": "<string>",
"id": "<string>",
"callId": "<string>",
"callName": "<string>",
"unityId": "<string>",
"successEvaluation": true,
"botId": "<string>",
"audioFileUrl": "<string>",
"agentRecordingUrl": "<string>",
"userRecordingUrl": "<string>",
"endCallType": "<string>",
"callType": "<string>",
"dateFormatted": "<string>",
"costBreakdown": {
"currency": "<string>",
"fxRateUsdBrl": 123,
"llmCompletionTokens": 123,
"llmCost": 123,
"llmPromptCachedTokens": 123,
"llmPromptTokens": 123,
"pricingVersion": "<string>",
"sttAudioDurationMs": 123,
"sttCost": 123,
"total": 123,
"totalCost": 123,
"ttsCharactersCount": 123,
"ttsCost": 123
},
"duration": 123,
"phone": "<string>",
"callDate": "<string>",
"dataStructure": {},
"durationFormatted": "<string>",
"transcription": [
{
"content": "<string>",
"createdAt": 123,
"id": "<string>",
"interrupted": true,
"role": "<string>",
"type": "<string>"
}
],
"metadata": {
"bot": {
"id": "<string>",
"name": "<string>"
},
"callTime": "<string>",
"environment": "<string>",
"institution": {
"id": "<string>"
},
"unit": {
"id": "<string>",
"name": "<string>"
}
},
"callTime": "<string>",
"totalCost": 123,
"summary": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}Registros de Chamada
Buscar registro de chamada por ID
Endpoint para retornar os detalhes do registro da chamada
GET
/
api
/
v1
/
voice
/
call-logs
/
id
/
{callId}
Buscar registro de chamada por ID
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}import requests
url = "https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"message": "<string>",
"id": "<string>",
"callId": "<string>",
"callName": "<string>",
"unityId": "<string>",
"successEvaluation": true,
"botId": "<string>",
"audioFileUrl": "<string>",
"agentRecordingUrl": "<string>",
"userRecordingUrl": "<string>",
"endCallType": "<string>",
"callType": "<string>",
"dateFormatted": "<string>",
"costBreakdown": {
"currency": "<string>",
"fxRateUsdBrl": 123,
"llmCompletionTokens": 123,
"llmCost": 123,
"llmPromptCachedTokens": 123,
"llmPromptTokens": 123,
"pricingVersion": "<string>",
"sttAudioDurationMs": 123,
"sttCost": 123,
"total": 123,
"totalCost": 123,
"ttsCharactersCount": 123,
"ttsCost": 123
},
"duration": 123,
"phone": "<string>",
"callDate": "<string>",
"dataStructure": {},
"durationFormatted": "<string>",
"transcription": [
{
"content": "<string>",
"createdAt": 123,
"id": "<string>",
"interrupted": true,
"role": "<string>",
"type": "<string>"
}
],
"metadata": {
"bot": {
"id": "<string>",
"name": "<string>"
},
"callTime": "<string>",
"environment": "<string>",
"institution": {
"id": "<string>"
},
"unit": {
"id": "<string>",
"name": "<string>"
}
},
"callTime": "<string>",
"totalCost": 123,
"summary": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}Token de Acesso
string
Token de acesso (“Bearer” deve estar antes do token)
Parâmetros
string
ID do registro da chamada
Descrição da Resposta
Abaixo você encontra a resposta retornada após a busca de visualização dos detalhes do registro de chamadastring
required
Mensagem de retorno da operação.
string
required
Identificador único do log de chamada.
string
required
Identificador da chamada.
string
required
Nome da chamada.
string
required
Identificador da unidade associada.
boolean
required
Indica se a avaliação de sucesso da chamada foi positiva.
string
required
Identificador do bot associado à chamada.
string
URL do arquivo de áudio completo da chamada.
string
URL da gravação de áudio do agente.
string
URL da gravação de áudio do usuário.
string
required
Tipo de encerramento da chamada.
string
required
Tipo da chamada, como
WEB ou PHONE.string
Data da chamada formatada.
object
Detalhamento dos custos da chamada.
Show Cost breakdown properties
Show Cost breakdown properties
string
required
Moeda utilizada no cálculo dos custos.
number
Taxa de conversão de USD para BRL utilizada no cálculo.
number
Quantidade de tokens de resposta consumidos pelo modelo.
number
Custo referente ao uso do modelo de linguagem.
number
Quantidade de tokens de prompt reutilizados em cache.
number
Quantidade de tokens de prompt enviados ao modelo.
string
Versão da tabela de preços utilizada.
number
Duração do áudio processado pelo speech-to-text em milissegundos.
number
Custo referente ao processamento de speech-to-text.
number
required
Valor total calculado para a chamada.
number
required
Custo total final da chamada.
number
Quantidade de caracteres processados no text-to-speech.
number
Custo referente ao processamento de text-to-speech.
number
required
Duração da chamada em segundos.
string
Telefone associado à chamada.
string
required
Data e hora da chamada.
object
Estrutura de dados adicional da chamada.
string
required
Duração da chamada formatada.
array
Lista de mensagens transcritas da chamada.
Show Transcription properties
Show Transcription properties
string
required
Conteúdo da mensagem transcrita.
number
required
Data e hora de criação da mensagem em timestamp.
string
required
Identificador único do item da transcrição.
boolean
required
Indica se a mensagem foi interrompida.
string
required
Papel de quem enviou a mensagem, como
assistant ou user.string
required
Tipo do item da transcrição.
object
Metadados adicionais da chamada.
Show Metadata properties
Show Metadata properties
object
string
Horário da chamada.
string
Ambiente em que a chamada foi executada.
object
Informações da instituição associada.
Show Institution properties
Show Institution properties
string
required
Identificador da instituição.
string
required
Horário da chamada.
number
required
Custo total da chamada.
string
Resumo da chamada.
string
required
Data e hora de criação do registro.
string
Data e hora da última atualização do registro.

