Callbacks
Events Superslice sends to your server, and how to verify them.
When a slice finishes, Superslice sends a POST to its callback_url. Without one, it uses the webhook URL set in the console. With neither, nothing is sent. Poll GET /v1/slices/{id} instead.
Events
| Event | Sent when |
|---|---|
slice.completed | A slice succeeds, including on a cache hit |
slice.failed | A slice fails |
test | You press Send test event in the console |
{
"event": "slice.completed",
"event_id": "evt_01936f...",
"created_at": "2026-12-03T10:00:04Z",
"data": { "id": "job_01936f...", "status": "succeeded", "result": {} }
}For slice events, data is the same object GET /v1/slices/{id} returns.
event_id is unique. The same event can arrive twice, so ignore ids you have seen.
Verify the signature
Every callback carries a header.
Superslice-Signature: t=1763028004,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd- Compute the hex HMAC-SHA256 of
{t}.{raw request body}with your signing secret. - Compare it to
v1in constant time. - Reject the callback if
tis more than 5 minutes from your clock.
Use the raw bytes. Parsing and re-encoding the JSON changes them. Reveal or rotate the secret in the console under Webhooks.
Every SDK has a verify that does this for you: Node.js, Python, Go, PHP, Ruby, Java, .NET and Rust.
Retries
Reply with any 2xx within 10 seconds. A failed delivery is sent again 3 times, 5 seconds apart, then marked failed. The result stays available from GET /v1/slices/{id}.
Callback URLs must be HTTPS and resolve to a public address.