Diska
Webhooks

Create a webhook endpoint

Registers an https:// URL that starts receiving the subscribed events.
POST https://api.diska.ai/v1/webhook-endpoints

Scope: webhooks:manage

The response carries the secret (dskw_…) to verify signatures: it only appears in this response. Each organization can have up to 10 endpoints.

Request body

application/json

FieldTypeRequiredDescription
urlstringYesFull https:// URL of your receiver. Private or internal addresses are refused. 12 to 2000 characters.
descriptionstring | nullNoDescription. Up to 500 characters.
eventsarrayNoEvents to subscribe to: call.completed, booking.created. Default ["call.completed"].
{
  "url": "https://o-seu-sistema.com/hooks/diska",
  "description": "CRM — produção",
  "events": [
    "call.completed"
  ]
}

Examples

curl -X POST "https://api.diska.ai/v1/webhook-endpoints" \
  -H "Authorization: Bearer $DISKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://o-seu-sistema.com/hooks/diska","description":"CRM — produção","events":["call.completed"]}'

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.

POSThttps://api.diska.ai/v1/webhook-endpoints
Starts with dsk_. It stays in this browser tab only.
Enter an API key (dsk_…).

Response 201

FieldTypeDescription
endpointobjectThe created endpoint.
endpoint.idstringEndpoint ID.
endpoint.urlstringDelivery destination.
endpoint.descriptionstring | nullDescription.
endpoint.eventsarraySubscribed events.
endpoint.activebooleanfalse when disabled (by you or automatically). Default: true.
endpoint.disabled_reasonstring | nullWhy it was disabled automatically, or null.
endpoint.failure_countintegerConsecutive failed deliveries. Default: 0.
endpoint.last_delivery_atstring | nullLast delivery.
endpoint.last_delivery_statusstring | nullResult of the last delivery, for example delivered (200).
endpoint.secret_previewstringStart and end of the secret, to identify it.
endpoint.created_atstring | nullCreation date (ISO 8601).
secretstringThe secret (dskw_…) to verify signatures. It only appears in this response.
{
  "endpoint": {
    "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"
  },
  "secret": "dskw_…"
}

Errors

CodeWhen
400URL inválido: use um endpoint https:// completo. (use a full https:// URL), URL bloqueado por segurança: … (blocked for security), Subscreva pelo menos um evento. (at least one event), Eventos desconhecidos: … (unknown events) or Limite de 10 endpoints por organização atingido. (10 endpoints per organization).

Errors common to every endpoint (401, 403, 422, 429 and 5xx) are in Errors.

Copyright © 2026