For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update a webhook

Replaces the webhook. event_type, target_url and retry_countdown_config are required; omitted optional fields keep their current values. The requesting account becomes the webhook's owner.

The new event_type and target_url pair must not belong to another webhook of the account. Such a request is not reported as a validation error: it fails with 500 and the webhook is left unchanged.

put
/whisperer/hooks/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the webhook.

Body

The data to register or fully update a webhook.

event_typestring · max: 124Required

The event type to subscribe to; one of the values returned by GET /whisperer/hooks/registry/.

target_urlstring · max: 255Required

The URL events are posted to.

is_activebooleanOptional

Whether the webhook receives events.

Default: true
secret_keystring · max: 124 · nullableOptional

When set, every request carries an X-Whisperer-Signature header computed with this key.

callbackstring · max: 64 · nullableOptional

Reserved for platform integrations; leave null.

Responses
200

The updated webhook.

application/json

A webhook subscription.

idintegerOptional

The unique identifier of the webhook.

created_datestring · date-timeOptional

When the webhook was registered.

modified_datestring · date-timeOptional

When the webhook was last modified.

target_urlstring · max: 255Optional

The URL events are posted to.

is_activebooleanOptional

Whether the webhook receives events.

secret_keystring · max: 124 · nullableOptional

The key requests are signed with, returned as stored; null when requests are not signed.

event_typestring · max: 124Optional

The event type the webhook subscribes to.

callbackstring · max: 64 · nullableOptional

Reserved for platform integrations; normally null.

put/whisperer/hooks/{id}/
PUT /api/v1/remote/1/whisperer/hooks/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 264

{
  "event_type": "text",
  "target_url": "text",
  "retry_countdown_config": {
    "choice": "fixed",
    "kwargs": {
      "seconds": 60
    }
  },
  "is_active": true,
  "secret_key": null,
  "additional_headers": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "config": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "callback": null
}
{
  "id": 12,
  "retry_countdown_config": {
    "choice": "exponential",
    "kwargs": {
      "base": 2,
      "factor": 30,
      "limit": 3600
    }
  },
  "created_date": "2026-10-01T08:15:42.120394Z",
  "modified_date": "2026-10-01T08:15:42.120394Z",
  "target_url": "https://hooks.example.com/commerce",
  "is_active": true,
  "secret_key": "change-me",
  "event_type": "user_registered",
  "callback": null,
  "additional_headers": {
    "X-Api-Key": "example-key"
  },
  "config": {}
}

Last updated

Was this helpful?