Skip to main content
SleetPay sends an HTTP POST to your endpoint whenever something happens. Add endpoints in Dashboard > Webhooks, choose the events each one receives, and copy its signing secret.

The envelope

data is the full entity, not a diff, so you rarely need a follow-up fetch.

Headers

Verify every delivery

The scheme is Standard Webhooks, so any Standard Webhooks library works. The SDKs do it for you. Always verify the raw body before parsing, and reject timestamps more than 5 minutes from your clock.
The HMAC key is the secret exactly as shown, including any prefix. The signature header can carry several space-separated signatures during secret rotation; accept if any matches.
Use the raw bodyFrameworks that parse JSON before your handler can change whitespace and key order and break the signature. Read the body as text (await req.text(), request.body, express.raw).

Retries and replay

Answer with a 2xx within 8 seconds. Otherwise SleetPay retries after 15 seconds, 60 seconds and 5 minutes, then marks the delivery failed. Every attempt is visible in Webhooks > Deliveries with its status and payload. To resend a past delivery, open it and press Replay. The replay uses the same payload and the same webhook-id with a fresh timestamp, so a receiver that de-duplicates treats it as the redelivery it is.

Handler checklist

  1. Verify the signature on the raw body.
  2. Return 200 quickly; do slow work in a queue.
  3. De-duplicate on webhook-id (store processed ids).
  4. Make handlers idempotent: events can arrive out of order, so read the current state when it matters.

Events

Payloads use snake_case JSON and mirror Polar’s shapes, so integrations written against Polar’s webhook events generally work unchanged.