Webhooks
List webhook endpoints
Lists the organization's endpoints, active and inactive, newest first.
GET https://api.diska.ai/v1/webhook-endpoints
Scope: webhooks:manage
Examples
curl "https://api.diska.ai/v1/webhook-endpoints" \
-H "Authorization: Bearer $DISKA_API_KEY"
import os
import requests
response = requests.get(
"https://api.diska.ai/v1/webhook-endpoints",
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/webhook-endpoints', {
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/webhook-endpoints');
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/webhook-endpointsStarts with dsk_. It stays in this browser tab only.
Enter an API key (dsk_…).
Response 200
| Field | Type | Description |
|---|---|---|
[].id | string | Endpoint ID. |
[].url | string | Delivery destination. |
[].description | string | null | Description. |
[].events | array | Subscribed events. |
[].active | boolean | false when disabled (by you or automatically). Default: true. |
[].disabled_reason | string | null | Why it was disabled automatically, or null. |
[].failure_count | integer | Consecutive failed deliveries. Default: 0. |
[].last_delivery_at | string | null | Last delivery. |
[].last_delivery_status | string | null | Result of the last delivery, for example delivered (200). |
[].secret_preview | string | Start and end of the secret, to identify it. |
[].created_at | string | null | Creation date (ISO 8601). |
[
{
"id": "e7a1c3f5-9b2d-4f6e-8a0c-3d5f7b9e1c24",
"url": "https://o-seu-sistema.com/hooks/diska",
"description": "CRM — produção",
"events": [
"call.completed"
],
"active": true,
"disabled_reason": null,
"failure_count": 0,
"last_delivery_at": "2026-10-25T18:40:00Z",
"last_delivery_status": "delivered (200)",
"secret_preview": "dskw_AbC…wXyZ",
"created_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.

