Webhooks
A webhook is an HTTPS URL on your side that we call when one of your background jobs finishes. This page covers the endpoints that manage webhooks. For the payload format and how to check the signature, read the Webhooks guide.
Every endpoint on this page is free.
Events
| Event | Sent when a job |
|---|---|
job.succeeded |
finishes and has results |
job.failed |
stops with an error |
job.timed_out |
runs past its time limit |
job.aborted |
is stopped before it finishes |
POST /v1/webhooks
Registers a new endpoint.
| Body field | Type | Required | Description |
|---|---|---|---|
url |
string | yes | Where to send events. Must start with https://. |
events |
string[] | no | Which events to send. Leave it out, or send an empty list, to get all four. |
description |
string | no | A note for yourself, such as "staging". |
POST /v1/webhooksAuthorization: Bearer zdk_your_keyContent-Type: application/json
{ "url": "https://hooks.example.dev/zillodata/jobs", "events": ["job.succeeded", "job.failed"], "description": "staging"}The 201 Created response is the only time you will see the signing secret. Store it somewhere safe before you move on.
{ "data": { "id": "5c27e9a0-3b14-4f8d-92e6-a07d1f4c8b53", "url": "https://hooks.example.dev/zillodata/jobs", "events": ["job.succeeded", "job.failed"], "active": true, "created_at": "2026-11-24T17:45:09.204Z", "secret": "whsec_Q2xv8Hn3tR7pYb0kLs4WzE1mJd9cFa6uVg5iNo2xTqA" }, "request_id": "3f8a6d21c09be574"}If you lose the secret, delete the webhook and create a new one.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_json |
The body isn’t valid JSON. |
| 400 | invalid_url |
url is missing or doesn’t use https://. |
| 400 | invalid_event |
An entry in events isn’t one of the four event names. |
GET /v1/webhooks
Lists every webhook on your account, newest first, including ones you have deleted. Secrets are never included.
curl https://api.zillodata.com/v1/webhooks \ -H "Authorization: Bearer $ZILLODATA_KEY"{ "data": [ { "id": "5c27e9a0-3b14-4f8d-92e6-a07d1f4c8b53", "url": "https://hooks.example.dev/zillodata/jobs", "events": ["job.succeeded", "job.failed"], "active": true, "description": "staging", "created_at": "2026-11-24T17:45:09.204Z", "revoked_at": null } ], "request_id": "b4e0927c1d5fa368"}A deleted webhook has active: false and a revoked_at timestamp.
DELETE /v1/webhooks/{id}
Turns a webhook off. Events stop right away. The response is 204 No Content with an empty body. The record stays in your list, marked inactive, so its delivery history is still available.
Returns 400 invalid_id if id isn’t a UUID.
GET /v1/webhooks/{id}/deliveries
Shows each attempt to deliver an event to this webhook, newest first. Useful when your endpoint isn’t receiving what you expect.
| Parameter | Type | Description |
|---|---|---|
limit |
integer | Default 50, maximum 200. |
{ "data": [ { "id": 21907, "job_id": "e3c8a17d-50b2-4f9e-a614-2d7f0b9c5e81", "event": "job.succeeded", "attempt": 2, "status_code": 200, "delivered": true, "attempted_at": "2026-11-24T18:02:33.871Z", "response_preview": "received" }, { "id": 21906, "job_id": "e3c8a17d-50b2-4f9e-a614-2d7f0b9c5e81", "event": "job.succeeded", "attempt": 1, "status_code": 500, "delivered": false, "attempted_at": "2026-11-24T18:02:33.604Z", "response_preview": "Internal Server Error" } ], "request_id": "60d3b8f5a2e417c9"}response_preview holds the first 500 characters of what your endpoint sent back, or the network error if it couldn’t be reached. status_code is null when no HTTP response came back.
Retries
Your endpoint has 8 seconds to answer with a 2xx status. Anything else counts as a failure. A failed delivery is retried twice, a few seconds apart at most, for 3 attempts in total. After the third failure the event is not sent again.
Because delivery isn’t guaranteed, don’t rely on webhooks alone. If you expect a job to have finished and haven’t heard, check it with GET /v1/jobs/{id}.