Delete a webhook subscription
const url = 'http://localhost:8891/api/v1/webhooks/b7d4c8e1-2f3a-4b5c-8d6e-7f8091a2b3c4';const options = { method: 'DELETE', headers: { 'idempotency-key': '3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17', Authorization: 'Bearer <token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:8891/api/v1/webhooks/b7d4c8e1-2f3a-4b5c-8d6e-7f8091a2b3c4 \ --header 'Authorization: Bearer <token>' \ --header 'idempotency-key: 3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17'Stop delivering to this endpoint and forget it. Its queued deliveries go with it — an endpoint that no longer exists has nothing to receive them, and every event is a resource you can re-read. Pause instead (PATCH with status: disabled) to keep the registration and its history. 404 on an unknown subscription; 409 on an Idempotency-Key reused for a different request. Requires the webhooks:delete scope. Events, signature verification and delivery semantics: see webhook events.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Example
b7d4c8e1-2f3a-4b5c-8d6e-7f8091a2b3c4Header Parameters
Section titled “Header Parameters”Example
3f8a1c62-9d5e-4b7a-8f21-0c4e6b9d2a17Unique key for this write. Retrying with the same key replays the first response instead of creating a duplicate; reusing it for a different body is a 409. Keys are scoped to the operation, so the same key may also be sent to a different endpoint.
Responses
Section titled “ Responses ”The webhook subscription was deleted.
Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}Default Response
object
Example
{ "code": "VALIDATION_ERROR"}