Skip to content

Menu

  • Media
  • Pricing
  • Docs
  • Language: English

    This page isn’t available in the greyed-out languages.

    • English
    • Español
    • Português
    • Français
    • Deutsch
    • Italiano
    • Nederlands
    • Polski
    • 日本語
    • 한국어
    • Bahasa Indonesia
    • Tiếng Việt
    • Türkçe
    • العربية
    • ไทย
    • Български
    • Català
    • Hrvatski
    • Eesti
    • Magyar
    • Latviešu
    • Lietuvių
    • Srpski
    • Slovenčina
    • Slovenščina
    • Українська
    • Čeština
    • Română
    • Svenska
    • Dansk
    • Norsk bokmål
    • Suomi
    • עברית
    • हिन्दी
    • Tagalog
    • Bahasa Melayu
    • Ελληνικά
    • 简体中文
    • 繁體中文

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

The message

Headers

  • webhook-idstringRequired

    The message's ID, the same on every retry. Use it to process each message once.

  • webhook-timestampstringRequired

    When this attempt was sent, in Unix seconds. Refuse a message more than 5 minutes old.

  • webhook-signaturestringRequired

    v1, and the Base64 HMAC-SHA256 of {webhook-id}.{webhook-timestamp}.{body}, keyed with the Base64-decoded part of the secret after whsec_. Any Standard Webhooks library checks it.

Payload

Every body has these fields:

  • typestringRequired
  • timestampstring (date-time)Required

    When the message was built.

  • dataobjectRequired
webhook-id: msg_0f1e2d3c4b5a69788796a5b4c3d2e1f0
webhook-timestamp: 1796289832
webhook-signature: v1,agm4oAVNWfBnEdXQnRGD9O2uh2MVVu8hPeQf/mc6UB4=
Payload
{
  "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"
          }
        ]
      }
    ]
  }
}

job.completed

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.

job.partly_failed

A job ended with some tasks completed and some failed

data is the job. Failed tasks aren't charged.

job.failed

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.

job.cancelled

A job was cancelled before any task completed

data is the job.

credits.low

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_idstringRequired

    The Workspace's ID.

  • data.available_creditsintegerRequired
  • data.alert_levelintegerRequired

webhook.test

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