Remove a webhook
Stops every delivery to it, those waiting for a retry included.
DELETE/v1/webhooks/{webhook_id}
Stops every delivery to it, those waiting for a retry included. Its delivery log goes with it. The gateway has the change within the time the signed lists take to arrive (about 10 seconds).
A key with the webhooks:write scope.
Request
curl -X DELETE "https://api.pod.mapier.ai/v1/webhooks/whk_3ahrz6dmv29gqy5ckt18fp" \
-H "Authorization: Bearer $POD_API_KEY"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
webhook_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Answer
204. Removed.
Errors
The refusals this call is known for: forbidden, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.
In the SDKs
| Client | Call |
|---|---|
| TypeScript | pod.webhooks.delete(id) |
| Python | pod.webhooks.delete(id) |