Calls
Get a call
Returns a call with every field of the list plus the transcript (messages), the executed actions (tool_calls), the post-call result (post_call) and the recording state.
GET https://api.diska.ai/v1/calls/{call_id}
Scope: calls:read
The recording audio is not returned: listen to it in History.
Parameters
Path
| Name | Type | Required | Description |
|---|---|---|---|
call_id | string | Yes | The call's ID (the webhooks' call_id). |
Examples
curl "https://api.diska.ai/v1/calls/<call_id>" \
-H "Authorization: Bearer $DISKA_API_KEY"
import os
import requests
response = requests.get(
"https://api.diska.ai/v1/calls/<call_id>",
headers={"Authorization": f"Bearer {os.environ['DISKA_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
print(response.json())
// Node.js 18 or later, in a .mjs file
const response = await fetch('https://api.diska.ai/v1/calls/<call_id>', {
headers: { Authorization: `Bearer ${process.env.DISKA_API_KEY}` }
})
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`)
console.log(await response.json())
<?php
$ch = curl_init('https://api.diska.ai/v1/calls/<call_id>');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('DISKA_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
if ($status >= 400) {
throw new RuntimeException("HTTP $status: $body");
}
print_r(json_decode($body, true));
Try it
Send the request from this page, with your key. The key stays on this page: it is not stored and is only sent to api.diska.ai. Use a test key with the fewest scopes you need.
GET
https://api.diska.ai/v1/calls/{call_id}Starts with dsk_. It stays in this browser tab only.
path
Enter an API key (dsk_…).
Response 200
| Field | Type | Description |
|---|---|---|
id | string | Call ID (the webhooks' call_id). |
external_ref | string | null | Voice session ID (the webhooks' session_id). |
agent_id | string | null | Agent that answered. |
agent_name | string | null | Name of the agent that answered. |
channel | string | browser_demo (web call), phone, whatsapp or web_chat. Default: browser_demo. |
direction | string | null | inbound, outbound, or null for web calls. |
status | string | Call state. One of: created, active, completed, failed, cancelled, abandoned. Default: created. |
caller_name | string | null | Caller name, when known. |
caller_contact | string | null | Caller contact, when known. |
started_at | string | null | Call start. |
ended_at | string | null | Call end. |
duration_seconds | integer | null | Duration in seconds. |
end_reason | string | null | Why the call ended. |
summary | string | null | Call summary, when generated. |
is_simulation | boolean | true for web test calls (browser_demo). Default: true. |
labels | array | Call labels. |
has_post_call | boolean | true when there is a post-call result. Default: false. |
executed_actions_count | integer | Number of executed actions. Default: 0. |
organization_id | string | The call's organization. |
metadata | object | Technical metadata. Its content is not stable: do not rely on it. |
messages | array | Transcript, in order. |
messages[].id | string | Turn ID. |
messages[].sequence | integer | Order of the turn in the conversation. Default: 0. |
messages[].role | string | user (the caller) or assistant (the agent). Default: user. |
messages[].content | string | What was said. |
messages[].created_at | string | null | When the turn was recorded. |
tool_calls | array | Actions executed during the call. |
tool_calls[].id | string | Execution ID. |
tool_calls[].tool_name | string | Executed action. |
tool_calls[].status | string | Execution state. Default: pending. |
tool_calls[].input | object | Data sent to the action. |
tool_calls[].output | object | array | Action result, or null. |
tool_calls[].error_message | string | null | Error, when it failed. |
tool_calls[].latency_ms | integer | null | Execution time in milliseconds. |
tool_calls[].called_at | string | null | Execution start. |
tool_calls[].completed_at | string | null | Execution end. |
post_call | object | null | Post-call result (the call.completed webhook content, without call_id), or null. |
has_recording | boolean | true when a recording is available. Default: false. |
recording_state | string | Recording state. One of: disabled, recording, uploading, available, failed, expired, deleted. Default: disabled. |
{
"id": "8d0c6a3e-2f14-4b7a-9c55-1e3f0a6d2b81",
"external_ref": "sess_7f3a9c1e",
"agent_id": "3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",
"agent_name": "Recepção",
"channel": "phone",
"direction": "inbound",
"status": "completed",
"caller_name": "Ana Silva",
"caller_contact": "+244900000000",
"started_at": "2026-10-25T18:40:00Z",
"ended_at": "2026-10-25T18:41:35Z",
"duration_seconds": 95,
"end_reason": "caller_hangup",
"summary": "O cliente pediu o horário de abertura e marcou uma visita para sexta-feira.",
"is_simulation": false,
"labels": [
"urgente"
],
"has_post_call": true,
"executed_actions_count": 2,
"organization_id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
"metadata": {},
"messages": [
{
"id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
"sequence": 1,
"role": "user",
"content": "Bom dia, queria marcar uma consulta.",
"created_at": "2026-10-25T18:40:00Z"
}
],
"tool_calls": [
{
"id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
"tool_name": "transfer_call",
"status": "completed",
"input": {},
"output": {},
"error_message": null,
"latency_ms": 820,
"called_at": "2026-10-25T18:40:00Z",
"completed_at": "2026-10-25T18:40:01Z"
}
],
"post_call": {},
"has_recording": true,
"recording_state": "available"
}
Errors
| Code | When |
|---|---|
404 | Chamada não encontrada. (call not found). |
Errors common to every endpoint (401, 403, 422, 429 and 5xx) are in Errors.

