delete_webhook
Delete a webhook subscription by ID to stop receiving events from the broker. Use when rotating endpoint URLs, retiring agents, or narrowing event scope. Idempotent: returns success or 404 for missing IDs.
Instructions
Unsubscribe one of the agent's webhooks by id.
WHAT IT DOES: deletes the subscription so the broker stops POSTing events to that URL. Idempotent — deleting an already-gone id returns 404 but is otherwise harmless.
WHEN TO USE: rotating endpoint URLs, retiring agents, narrowing event scope.
RETURNS: { deleted: true, id } on success.
RELATED: list_webhooks (find ids), register_webhook (re-subscribe).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Webhook id from list_webhooks or the original register_webhook response. | |
| api_key | No | Bearer api_key (or env). |