Diska
Webhooks

Update a webhook endpoint

Changes only the fields you send.
PATCH https://api.diska.ai/v1/webhook-endpoints/{endpoint_id}

Scope: webhooks:manage

active: true re-enables a disabled endpoint and resets failure_count; active: false stops deliveries. The secret does not change.

Parameters

Path

NameTypeRequiredDescription
endpoint_idstringYesThe endpoint's ID.

Request body

application/json

FieldTypeRequiredDescription
urlstring | nullNoNew https:// URL. 12 to 2000 characters.
descriptionstring | nullNoNew description; "" clears it. Up to 500 characters.
eventsarray | nullNoNew event list (at least one).
activeboolean | nullNotrue re-enables and resets failure_count; false stops deliveries.
{
  "active": true
}

Examples

curl -X PATCH "https://api.diska.ai/v1/webhook-endpoints/<endpoint_id>" \
  -H "Authorization: Bearer $DISKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"active":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.

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

Response 200

FieldTypeDescription
idstringEndpoint ID.
urlstringDelivery destination.
descriptionstring | nullDescription.
eventsarraySubscribed events.
activebooleanfalse when disabled (by you or automatically). Default: true.
disabled_reasonstring | nullWhy it was disabled automatically, or null.
failure_countintegerConsecutive failed deliveries. Default: 0.
last_delivery_atstring | nullLast delivery.
last_delivery_statusstring | nullResult of the last delivery, for example delivered (200).
secret_previewstringStart and end of the secret, to identify it.
created_atstring | nullCreation 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

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).
404Endpoint não encontrado. (endpoint not found).

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

Copyright © 2026