Delete webhook - Webhooks
Delete a webhook and free its plan slot. Complete guide on how to use DELETE /webhooks/{id} in GetBlock Webhooks documentation.
DELETE /webhooks/{id} deletes a webhook. Deliveries stop and the webhook frees its plan slot and its addresses from your account's address count.
DELETE https://public-api.getblock.io/api/v1/webhooks/{id}Parameters
Parameter
Type
Required
Description
id
string
Yes
Path parameter. The webhook's id (wh_…).
Request Example
curl -X DELETE https://public-api.getblock.io/api/v1/webhooks/wh_4Qk7Xz9pLm2R \
-H "Authorization: Bearer $GETBLOCK_API_KEY"const id = 'wh_4Qk7Xz9pLm2R';
const response = await fetch(`https://public-api.getblock.io/api/v1/webhooks/${id}`, {
method: 'DELETE',
headers: { Authorization: `Bearer ${process.env.GETBLOCK_API_KEY}` }
});
console.log(response.status); // 204import os
import requests
webhook_id = "wh_4Qk7Xz9pLm2R"
response = requests.delete(
f"https://public-api.getblock.io/api/v1/webhooks/{webhook_id}",
headers={"Authorization": f"Bearer {os.environ['GETBLOCK_API_KEY']}"},
)
print(response.status_code) # 204Response Example
204 No Content, without a body.
Response Parameters
None.
Use Cases
Free a slot when you reach your plan's active-webhook limit (a paused webhook still holds its slot)
Remove a webhook whose
chain,network, ortrigger_typemust change, before creating its replacementClean up webhooks of a customer who left your service
Error Handling
HTTP
Code
Cause
404
not_found
No such webhook among yours, or it is already deleted.
Last updated
Was this helpful?