Webhooks

Re-enable a disabled webhook

Re-enable a webhook that was switched off after repeated delivery failures.

A webhook is disabled automatically after 5 consecutive failed deliveries, and we email the key's owner when that happens. Once your endpoint is accepting requests again, call this to resume delivery: the webhook is set active and its failure count is reset to zero. Calling it on a webhook that is already active changes nothing and returns it as-is.

Re-enabling counts the webhook's companies against your plan's watch cap again, so it can return a 403 if you have since created other webhooks that use the allowance.

post/v1/webhooks/{webhook_id}/reactivate

Request

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

Path parameters

webhook_idstring required

The webhook's ID, as returned by POST /v1/webhooks when it was created.

Example:whk_3f8a21c0

Response

The webhook, now active with its failure count reset

statusstring

'success' or 'error'

cachedboolean

True if this response was served from cache rather than fetched live

cache_age_secondsinteger nullable

How many seconds ago this data was fetched from Companies House (null if not cached)

fetched_atstring 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_sourcestring

'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_usedinteger

Number of API credits consumed by this request

credits_remaininginteger nullable

API credits remaining this month (null in dev mode)

Example response

{
  "cache_age_seconds": 3421,
  "cached": true,
  "credits_remaining": 487,
  "credits_used": 1,
  "data": {
    "company_age_years": 78,
    "company_name": "TESCO PLC",
    "company_number": "00445790",
    "company_status": "active",
    "company_type": "plc"
  },
  "data_source": "cached",
  "status": "success"
}

Changes

No recorded changes to this operation across all 1 revision of this API.