Skip to main content
Webhooks send your server an HTTPS POST the moment something happens in your workspace, so your back office, risk checks and accounting stay in step without polling.

Events

Subscribe to some of them, or to * for all (also the default).

Add an endpoint

Up to 10 endpoints per workspace, https:// only.
The answer holds the endpoint’s signing secret (whsec_...) once. Store it as a secret; later reads show it masked. Lost it? Rotate it with POST /v1/enterprise/webhooks/{id}/rotate-secret: the new one works at once. With the SDK:

What you receive

data is the same row the API answers: a withdrawal for withdrawal.*, a transaction for sale.*, a sub-account for subaccount.created.

Verify the signature

v1 is the HMAC-SHA256, in hex, of "<t>.<raw body>" with your endpoint secret. Check it before you trust the body, and reject old t values (say, older than 5 minutes) to stop replays.

Retries and redelivery

  • Answer with a 2xx within 10 seconds. Anything else is a failure.
  • A failed delivery is retried after 1 minute, 10 minutes and 1 hour.
  • The same event can arrive twice: dedupe on id (also in X-Pocketsflow-Event-Id).
  • GET /v1/enterprise/webhooks/{id}/deliveries lists the last 30 days, with each payload, status code and error. POST .../deliveries/{deliveryId}/redeliver sends one again (same event id, new signature).
  • Turn an endpoint off without deleting it with PATCH /v1/enterprise/webhooks/{id} and { "active": false }.
Full reference: Webhooks.