---
title: "Delete a webhook subscription"
method: DELETE
path: "/v1/webhooks/{webhook_id}"
tags: ["Webhooks"]
---

# Delete a webhook subscription

`DELETE /v1/webhooks/{webhook_id}`

## Request

- Base URL: `https://api.registrum.co.uk`
- URL: `https://api.registrum.co.uk/v1/webhooks/{webhook_id}`
- Auth: API key in header `X-API-Key`

Delete a webhook subscription. Deliveries will stop immediately.

## Path parameters

- `webhook_id` string, required: The webhook's ID, as returned by POST /v1/webhooks when it was created.

## Response `200`

Webhook deleted

- WebhookDeletedEnvelope: Response envelope for DELETE /v1/webhooks/{webhook_id}.
  - `status` string: 'success' or 'error'
  - `data` WebhookDeleted: Confirmation of a webhook deletion.
    - `deleted` boolean, required: Always true when the webhook was deleted
    - `id` string, required: ID of the deleted webhook
  - `cached` boolean: True if this response was served from cache rather than fetched live
  - `cache_age_seconds` integer, nullable: How many seconds ago this data was fetched from Companies House (null if not cached)
  - `fetched_at` string, nullable: ISO 8601 instant (UTC) when this data was actually fetched from Companies House. Use this, not cache_age_seconds, to show a user when the data was last checked: an age is measured at the moment this response was produced, so anything that caches the response downstream will overstate freshness by however long it held it. This instant does not drift. Null when unknown - render nothing rather than a guessed date.
  - `data_source` string: 'live' - fetched from Companies House right now; 'cached' - served from local cache (data is recent, no upstream call needed); 'cached_rate_conserved' - served from cache because the CH API budget is above 70% utilisation; data may be up to 30 days old in this state
  - `credits_used` integer: Number of API credits consumed by this request
  - `credits_remaining` integer, nullable: API credits remaining this month (null in dev mode)

## Other responses

- `401`: Missing or invalid API key
- `404`: Webhook not found or does not belong to this API key
- `422`: Validation Error

---

[API](https://skmtc.dev/registrum/apis/registrum-api.md) · [All operations](https://skmtc.dev/registrum/apis/registrum-api/llms.txt) · [OpenAPI document](https://skmtc.dev/registrum/apis/registrum-api/revisions/2bf0ecf7cc02?raw)
