Webhooks
Administrative endpoints for webhooks — subscriptions that make the platform POST an event to an external URL whenever that event occurs, for example when a user registers or a basket offer is updated.
Core Capabilities
1. Event Type Registry
List the event types a webhook can subscribe to with
GET /whisperer/hooks/registry/.
2. Webhook Management
Register a webhook for one event type and target URL, retrieve and list webhooks, fully (
PUT) or partially (PATCH) update them, and deactivate them.
3. Delivery History
Every delivery attempt is recorded as a webhook event — see Webhook Events.
Resend an undelivered event with
POST /whisperer/hook_events/{id}/retry/.
Visibility
A webhook belongs to the account that registered or last updated it. Superusers see every webhook; any other account sees only its own. Through the Omnitron remote proxy, that account is the Omnitron integration account of the channel. Creating, updating and deleting webhooks additionally requires the matching model permission; without it the request is refused with 403.
Event Types
event_type
payload
user_registered, user_logged_in, user_updated
The user.
conversation_replied
The conversation.
basket_offer_created, basket_offer_updated
The basket offer.
GET /whisperer/hooks/registry/ is authoritative: the list depends on the modules installed on the channel. An event type reaches webhooks only when the channel publishes it for asynchronous delivery through its event message definitions; subscribing alone does not make the platform emit it.
Webhook Fields
id
integer
The unique identifier of the webhook. Read-only.
event_type
string, up to 124 characters
The event the webhook subscribes to. Must be one of the registry's event types. Required on create and full update.
target_url
string, up to 255 characters
The URL the event is posted to. Required on create and full update.
is_active
boolean, default true
Only active webhooks receive events.
secret_key
string or null, up to 124 characters
When set, every request is signed with it (see Delivery). Returned as stored in responses.
retry_countdown_config
object
How long to wait between retries of a failed delivery (see Retry Countdown). Required on create and full update.
additional_headers
object, default {}
Extra HTTP headers sent with every request, as header name to value.
config
object, default {}
Delivery options. auth enables HTTP basic authentication: {"auth": {"auth_type": "basic", "username": "...", "password": "..."}}. Other keys are stored but ignored.
callback
string or null, up to 64 characters
Reserved for platform integrations: the import path of a server-side function run after each delivery. Leave it null; an unknown path makes deliveries fail.
created_date, modified_date
date-time
Read-only timestamps.
The same account can register a given event_type and target_url pair only once.
Retry Countdown
retry_countdown_config is {"choice": "<strategy>", "kwargs": {...}}. n is the number of retries already made, starting at 0.
choice
kwargs
Wait before retry n (seconds)
fixed
seconds (integer ≥ 0, required)
seconds
linear
base (integer ≥ 0, required), limit (integer ≥ 0 or null)
base × n, capped at limit
exponential
base (integer ≥ 0, required), factor (integer ≥ 1, default 1), limit (integer ≥ 0 or null)
base^n × factor, capped at limit
random
min_value, max_value (integers ≥ 0, both required; max_value must be greater)
A random value between the two, inclusive
Delivery
Each event is sent as POST to target_url with a JSON body:
Headers:
Content-Type: application/json,X-Whisperer-Event: <event_type>, anyadditional_headers, and — whensecret_keyis set —X-Whisperer-Signature: sha256=<hex>, the HMAC-SHA256 of the raw request body keyed withsecret_key.A
2xxresponse counts as delivered. Any other status, a network error or a timeout counts as a failure, and the delivery is retried up to 10 times, waiting asretry_countdown_configdictates. Every attempt is recorded on the same webhook event.
Filtering & Ordering
event_type
Exact, case-insensitive
target_url
Exact, case-insensitive
is_active
true or false
Use the sort parameter to order the results by any webhook field (for example sort=-created_date). Without sort the order is not guaranteed, so pass one when paging through results.
Deleting a Webhook
DELETE does not remove the webhook: it sets is_active to false, keeps its delivery history, and the webhook is still returned by list and retrieve. Reactivate it with PATCH and {"is_active": true}.
Dynamic Settings & Environment Variables
No dynamic settings affect these endpoints.
Environment variables / Django settings:
WHISPERER_REQUEST_TIMEOUT
10
Seconds to wait for the target URL to answer before the attempt counts as a failure.
Last updated
Was this helpful?

