Watched addresses
Remove an address
DELETE /v1/webhook/addresses/{id} stops watching an address right away.
Overview
DELETE/v1/webhook/addresses/{id}
Stops watching the address right away. Messages that were already queued for it may still arrive. Adding the same address again later counts as a new address and costs 1 credit, so to pause an address, prefer letting it go quiet.
Request
Request
curl -sS -X DELETE "https://webhooks.gray3.io/v1/webhook/addresses/whsub_7Qm2" \
-H "X-Gray-Project-Id: proj_your_project_id" \
-H "Authorization: Bearer gray_whk_your_webhook_key"Response
HTTP 200 — success envelope wraps the payload in data.
json
{ "data": { "deleted": true } }Errors
Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.
| Code | HTTP | When |
|---|---|---|
| not_found | 404 | No address with this ID in the project |
json
{
"error": {
"code": "not_found",
"message": "Human-readable detail (may be sanitized).",
"retryable": false
}
}