Agents
List agents
Lists the organization's agents, most recently changed first.
GET https://api.diska.ai/v1/agents
Scope: agents:read
Without the status filter, archived agents are left out. The list is not paginated.
Parameters
Query string
| Name | Type | Required | Description |
|---|---|---|---|
agent_type | string | null | No | Only agents of this type. One of: inbound, outbound, voice_widget, chat. |
status | string | null | No | Only agents in this state. Use archived to see archived agents. One of: draft, active, inactive, archived. |
search | string | null | No | Text contained in the name. Up to 200 characters. |
Examples
curl "https://api.diska.ai/v1/agents" \
-H "Authorization: Bearer $DISKA_API_KEY"
import os
import requests
response = requests.get(
"https://api.diska.ai/v1/agents",
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/agents', {
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/agents');
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/agentsStarts with dsk_. It stays in this browser tab only.
query
query
query
Enter an API key (dsk_…).
Response 200
| Field | Type | Description |
|---|---|---|
items | array | The agents. |
items[].id | string | Agent ID. |
items[].name | string | Agent name. |
items[].slug | string | Readable agent identifier. |
items[].description | string | null | Description, or null. |
items[].status | string | draft, active, inactive or archived. A published agent is active. |
items[].agent_type | string | inbound, outbound, voice_widget or chat. |
items[].editing_mode | string | prompt or flow (Flow Builder). It does not change after creation. Default: prompt. |
items[].version | integer | Agent version number. Default: 1. |
items[].phone_number | string | null | Number assigned to the agent, or null. |
items[].public_channel_enabled | boolean | true when the agent's public link is on. Default: false. |
items[].created_at | string | Creation date (ISO 8601). |
items[].updated_at | string | Last change date (ISO 8601). |
{
"items": [
{
"id": "3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",
"name": "Recepção",
"slug": "recepcao",
"description": "Atende as chamadas da recepção.",
"status": "active",
"agent_type": "inbound",
"editing_mode": "prompt",
"version": 3,
"phone_number": "+244900000000",
"public_channel_enabled": false,
"created_at": "2026-10-25T18:40:00Z",
"updated_at": "2026-10-25T18:40:00Z"
}
]
}
Errors
This endpoint has no errors of its own.
Errors common to every endpoint (401, 403, 422, 429 and 5xx) are in Errors.

