Skip to content

Search Call Log by ID

Endpoint used to search call log details by ID.

Terminal window
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/voice/call-logs/id/{callId} \
--header 'Authorization: Bearer TOKEN_HERE'
{
"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>"
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
callIdUUIDCall identifier.Yes
KeyTypeDescription
callIdStringUnique call identifier.
callNameStringIdentification name of the interaction (e.g., Agent Name or Project).
successEvaluationBooleanIndicates if the call was evaluated as successful.
durationFormattedStringTotal duration of the call in HH:MM:SS format.
totalCostNumberConsolidated total financial cost of the interaction.
endCallTypeStringReason for termination (e.g., CONVERTED, NO_ANSWER, ENDED).
audioFileUrlURLLink to the mixed audio of the complete conversation.
agentRecordingUrlURLLink to the exclusive recording of the Agent channel.
userRecordingUrlURLLink to the exclusive recording of the User channel.
costBreakdown.llmCostNumberTotal cost of intelligence processing (LLM).
costBreakdown.sttCostNumberCost of voice-to-text transcription service (Speech-to-Text).
costBreakdown.ttsCostNumberCost of text-to-voice synthesis service (Text-to-Speech).
costBreakdown.llmPromptTokensNumberTotal tokens sent in the context (Prompt).
costBreakdown.ttsCharactersCountNumberTotal characters converted to voice by the Agent.
transcription[].roleStringSpeaker role in the conversation turn (user or assistant).
transcription[].contentStringTextual content of the speech (transcribed or generated).
transcription[].interruptedBooleanIndicates if there was an interruption during this interlocutor’s speech.
metadata.bot.nameStringName of the Agent that performed the service.
metadata.unit.nameStringName of the organizational unit linked to the call.
metadata.callTimeStringExact local time of the start of the call.
metadata.environmentStringExecution environment where the log was generated (prod or dev).
summaryStringExecutive summary of the conversation generated by IA (can be null).

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