Delete a webhook

Remove a webhook for good. Nothing new will be sent to it. Anything already on its way may still arrive, and its recent history stays readable for a while. If you only want to pause it, switch it off with `is_active: false` instead — deleting also loses the signing key, and a replacement webhook gets a different one, which means changing your code. Requires the `webhooks.delete` permission.

DELETE
/webhooks/{webhookId}
AuthorizationBearer <token>

The access token returned after a successful sign-in, sent as Authorization: Bearer <access_token>.

It identifies the person and the organization they are working in, and it lasts about fifteen minutes. When it runs out, use their refresh token at POST /auth/refresh-token instead of asking them to sign in again.

In: header

Path Parameters

webhookId*string

Identifier of the webhook, the same value sent as the X-Webhook-ID header.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://api.dual.network/webhooks/665f1c2d4b1a2c3d4e5f6ae0"
{}
{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}

{
  "code": 16,
  "message": "no auth provided"
}

{
  "code": 5,
  "message": "object not found"
}
{
  "code": 13,
  "message": "internal error"
}