Calls
List calls
Lists the organization's calls, most recent first.
GET https://api.diska.ai/v1/calls
Scope: calls:read
It has two pagination modes: offset (the default, with total) and cursor (cursor=start, then the next_cursor you receive), better for exporting large histories.
Parameters
Query string
| Name | Type | Required | Description |
|---|---|---|---|
search | string | null | No | Text in the ID, external_ref, caller name or caller contact. Not allowed with cursor. Up to 200 characters. |
agent_id | string | null | No | Only calls of this agent. |
status | string | null | No | Only calls in this state. One of: created, active, completed, failed, cancelled, abandoned. |
channel | string | null | No | Only calls on this channel: browser_demo (web call), phone, whatsapp or web_chat. |
limit | integer | No | How many calls per page. Between 1 and 200. Default: 50. |
offset | integer | No | Offset mode: how many calls to skip. Minimum 0. Default: 0. |
cursor | string | null | No | Cursor mode: start on the first page, then the next_cursor you received. Up to 200 characters. |
Examples
curl "https://api.diska.ai/v1/calls?limit=10" \
-H "Authorization: Bearer $DISKA_API_KEY"
import os
import requests
response = requests.get(
"https://api.diska.ai/v1/calls?limit=10",
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?limit=10', {
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?limit=10');
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?limit=10Starts with dsk_. It stays in this browser tab only.
query
query
query
query
query
query
query
Enter an API key (dsk_…).
Response 200
| Field | Type | Description |
|---|---|---|
items | array | The calls on this page. |
items[].id | string | Call ID (the webhooks' call_id). |
items[].external_ref | string | null | Voice session ID (the webhooks' session_id). |
items[].agent_id | string | null | Agent that answered. |
items[].agent_name | string | null | Name of the agent that answered. |
items[].channel | string | browser_demo (web call), phone, whatsapp or web_chat. Default: browser_demo. |
items[].direction | string | null | inbound, outbound, or null for web calls. |
items[].status | string | Call state. One of: created, active, completed, failed, cancelled, abandoned. Default: created. |
items[].caller_name | string | null | Caller name, when known. |
items[].caller_contact | string | null | Caller contact, when known. |
items[].started_at | string | null | Call start. |
items[].ended_at | string | null | Call end. |
items[].duration_seconds | integer | null | Duration in seconds. |
items[].end_reason | string | null | Why the call ended. |
items[].summary | string | null | Call summary, when generated. |
items[].is_simulation | boolean | true for web test calls (browser_demo). Default: true. |
items[].labels | array | Call labels. |
items[].has_post_call | boolean | true when there is a post-call result. Default: false. |
items[].executed_actions_count | integer | Number of executed actions. Default: 0. |
limit | integer | Requested page size. |
total | integer | null | Total calls matching the filters (offset mode); null in cursor mode. |
offset | integer | null | This page's offset (offset mode); null in cursor mode. |
next_cursor | string | null | Next page cursor (cursor mode), or null at the end. |
{
"items": [
{
"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": false,
"executed_actions_count": 2
}
],
"limit": 50,
"total": 1,
"offset": 0,
"next_cursor": "…"
}
Errors
| Code | When |
|---|---|
400 | Cursor inválido. (invalid cursor), or search used with cursor. |
Errors common to every endpoint (401, 403, 422, 429 and 5xx) are in Errors.

