POST to that address.
Manage subscriptions with the Webhooks endpoints
(create, list, retrieve, and update).
Topics
You can subscribe to the following topics:A brand may register multiple webhooks, and the same address may subscribe to
the same topic more than once. In non-development environments, callback
addresses must use HTTPS.
Callback requests
Sotto delivers events as aPOST to your registered address. Callbacks are
signed with the same HMAC scheme as API requests (see
Authentication) and include these additional headers:
string
The API version for the callback (e.g.
v1).string
The UUID of the webhook subscription that triggered this callback.
string
The topic of the event (e.g.
user/opt-in).Payload
The body contains the time the event occurred and the associated resource:user/* topics, data is a User
object.
Responding
Your endpoint must return a2xx status code within 10 seconds. Any other
response — or a timeout — is treated as a failure and the callback is retried
up to 20 times before being dropped.
Best practices
Make handlers idempotent
Make handlers idempotent
Retries mean your endpoint may receive the same event more than once. Use
x-bigco-webhook-id together with date_occurred to detect and safely
ignore duplicates.Verify every signature
Verify every signature
Always validate the HMAC signature on incoming callbacks before acting on
them, and serve your endpoint over HTTPS.
Acknowledge fast, process async
Acknowledge fast, process async
Queue the event and return
200 immediately rather than doing heavy work
inline. This keeps you within the 10-second window and avoids unnecessary
retries.