Overview
Supply acallback_url on the original PUT and we’ll POST the final response to that URL when the operation reaches ready or failed. This eliminates polling latency for production integrations.
Webhooks follow the Standard Webhooks specification, so any standards-compliant client library can verify them out of the box.
Polling is canonical. Webhooks are a best-effort latency optimisation; if you didn’t receive one within a reasonable window, fall back to polling the
GET endpoint. Don’t rely on webhook receipt as proof of operation state.Registering a callback
Addcallback_url to any PUT request body:
- Be publicly accessible over HTTPS with a valid TLS certificate (self-signed certs are rejected).
- Return a 2xx status code within 10 seconds.
- Handle duplicate deliveries idempotently — use the
webhook-idheader as your deduplication key.
Payload shape
The body is the same DTO you’d get from polling, wrapped:type is <route>.<status> — either .ready or .failed — for fan-out routing on your side.
The data field is exactly the DTO from the matching GET endpoint. Anything you can do with a polled response, you can do with a webhook payload.
Correlate webhook deliveries with your own records using the echoed idempotency_key — you chose it on the PUT, so you already have it on your side.
Signature verification
Every delivery includes three headers (per the Standard Webhooks spec):
To verify a webhook:
- Compute
HMAC-SHA256(your_signing_secret, "<webhook-id>.<webhook-timestamp>.<raw-body>"). - Base64-encode it.
- Compare against the
v1,…signature inwebhook-signatureusing constant-time comparison. - Reject if the signature doesn’t match, or if
webhook-timestampis more than 5 minutes from the current time.
whsec_…) is shown once on creation; we store only an encrypted copy. See authentication.
Using the Standard Webhooks library (recommended)
There are official libraries that hide the HMAC math. From github.com/standard-webhooks/standard-webhooks:Manual verification
If you’d rather not pull in a library, here’s the equivalent in plain Python:Python
Retry behaviour
If your endpoint doesn’t return a2xx, we retry with exponential backoff up to 6 attempts (total window ~9 hours):
After the final retry attempt fails we give up and log the failure on our side. The operation result remains available via the
GET endpoint indefinitely — fall back to polling if you suspect a delivery was missed.
Secret rotation
Signing secrets are an account-level resource, independent of your API keys — rotating one doesn’t touch the other. To rotate without dropping deliveries:- Create a new signing secret in the dashboard. The plaintext is shown once.
- Roll out the new secret to your webhook handler so it can verify against either old or new.
- During the cutover, every outgoing webhook is signed with all of your non-revoked signing secrets (space-separated, e.g.
v1,<new> v1,<old>). The Standard Webhooks libraries handle multi-signature verification automatically. - Revoke the old secret when you’re confident every consumer has migrated.
Local testing
Use a tunnelling tool like ngrok to expose your local server during development:callback_url when submitting test operations.