Launch offer: service fee 10% 4% until 31 Dec, just enough to cover card processing. See pricing

← REST API reference

Delete a webhook endpoint

Delete a webhook endpoint and its delivery log: the REST Hooks unsubscribe call automation tools make when a trigger is turned off. Deliveries still waiting to retry stop. It can't be undone; a new endpoint gets a new secret.

View as Markdown
DELETEhttps://yapfactory.com/api/v1/webhooks/{webhookId}
Who can use itEveryone: brands and creators
Tierwrite: Changes your own things only. Nobody else is told.
Scopewebhooks:write, or write
Idempotency-KeyOptional, and recommended
Rate limitWrites: 20 a minute
MCP toolNone. This one is REST only.

Parameters

webhookId
pathrequired
uuid

The webhook endpoint's id.

Example request

curl -X DELETE "https://yapfactory.com/api/v1/webhooks/8f14e45f-ceea-4e7a-9b1d-2c3b4a5d6e7f" \
  -H "Authorization: Bearer $YAP_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Response

200 with the result in data.

{
  "data": {
    "id": "0d61f837-1c3b-4e4a-8a5f-7b2e9c6d1f00",
    "deleted": true
  }
}

An example: fields that don't apply are null, and new fields can be added at any time, so ignore ones you don't know. Every response carries Request-Id and the RateLimit-* headers.

Errors

CodeStatusWhen
invalid_request400A field failed validation (see meta.issues), or an unknown query parameter.
unauthorized401No token, or it's wrong, expired, revoked or from the other environment.
insufficient_scope403The token doesn't have webhooks:write (or write).
forbidden403Not allowed for this account, for example while it's paused.
not_found404No such webhook, or it isn't yours.
conflict409Its current state doesn't allow this. message says why, in words you can show.
idempotency_conflict409The same Idempotency-Key came with a different body.
rate_limited429Over the limit. Wait for Retry-After seconds.
internal500Our fault. Retry later, and send us the requestId if it keeps happening.

Every error has the same shape. See Errors for what to do about each one.