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

Register a webhook

Registers a webhook for one event type. event_type, target_url and retry_countdown_config are required; the webhook is active straight away. The requesting account becomes its owner.

The account may not already have a webhook for the same event_type and target_url — inactive ones included; reactivate that one instead.

post
/whisperer/hooks/
Authorizations
AuthorizationstringRequired

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

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
201

The registered 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.

post/whisperer/hooks/
POST /api/v1/remote/1/whisperer/hooks/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 251

{
  "event_type": "user_registered",
  "target_url": "https://hooks.example.com/commerce",
  "secret_key": "change-me",
  "retry_countdown_config": {
    "choice": "exponential",
    "kwargs": {
      "base": 2,
      "factor": 30,
      "limit": 3600
    }
  },
  "additional_headers": {
    "X-Api-Key": "example-key"
  }
}
{
  "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?