Webhook events
Every message we send to a webhook endpoint. Each is a POST with these headers and a JSON body: check its signature as Webhooks shows.
On this page
Headers
webhook-idstringRequiredThe message's ID, the same on every retry. Use it to process each message once.
webhook-timestampstringRequiredWhen this attempt was sent, in Unix seconds. Refuse a message more than 5 minutes old.
webhook-signaturestringRequiredv1,and the Base64 HMAC-SHA256 of{webhook-id}.{webhook-timestamp}.{body}, keyed with the Base64-decoded part of the secret afterwhsec_. Any Standard Webhooks library checks it.
Payload
Every body has these fields:
typestringRequiredtimestampstring (date-time)RequiredWhen the message was built.
dataobjectRequired
webhook-id: msg_0f1e2d3c4b5a69788796a5b4c3d2e1f0
webhook-timestamp: 1796289832
webhook-signature: v1,agm4oAVNWfBnEdXQnRGD9O2uh2MVVu8hPeQf/mc6UB4={
"type": "job.completed",
"timestamp": "2026-12-03T09:23:52Z",
"data": {
"id": "job_a1c9531eeb00434aba0058796f1ca517",
"operation": "video.compress",
"status": "completed",
"client_reference": "lecture-0412",
"settings": {
"audio": "keep",
"codec": "same",
"method": "target_size",
"target": {
"unit": "percent",
"value": 50
},
"frame_rate": "original",
"resolution": "auto",
"output_format": "same"
},
"created_at": "2026-12-03T09:23:14Z",
"started_at": "2026-12-03T09:23:33Z",
"finished_at": "2026-12-03T09:23:50Z",
"reserved_credits": 2,
"charged_credits": 1,
"tasks": [
{
"id": "task_3f648f64472b4ea4b88568eea9d4f88c",
"status": "completed",
"progress": 100,
"reserved_credits": 2,
"charged_credits": 1,
"inputs": [
{
"file_id": "file_3cf0737aefa34b89b7b4443c9467d60c",
"name": "lecture.mp4"
}
],
"outputs": [
{
"file_id": "file_a1c8014998a14c4da72d6e6a0c74314c",
"name": "lecture-compressed.mp4",
"size": 6054914,
"download_url": "https://…",
"download_expires_at": "2026-12-06T09:23:50Z"
}
]
}
]
}
}A job ended and every task completed, apart from any that were cancelled
data is the job, as GET /v1/jobs/{id} returns it, with fresh download links.
A job ended with some tasks completed and some failed
data is the job. Failed tasks aren't charged.
A job ended with every task failed, apart from any that were cancelled
data is the job. Failed tasks aren't charged; each gives its reason.
A job was cancelled before any task completed
data is the job.
The Workspace's credits fell below its alert level
Sent once each time the balance drops below the level set in the Workspace's Billing settings. It's sent with the low-credit email, so turning that email off stops it too.
data.workspace_idstringRequiredThe Workspace's ID.
data.available_creditsintegerRequireddata.alert_levelintegerRequired
A test message, sent from the endpoint's page in Settings
Sent only when someone asks for it, whatever events the endpoint listens for.
data.messagestringRequired