get_jobs (Long-running jobs). An account can register up to ten HTTPS endpoints. Each receives a POST when a job completes in any workspace the account owns: job.succeeded, job.failed or job.cancelled, for generation, render, dub and transcription jobs, with workspace_id naming the workspace. Endpoints belong to the account and are managed with an API key or the user’s own sign-in; a script session cannot, and creating one needs a workspace the account owns.
Registering
POST /api/v1/webhooks with url, an optional description, and event_types to receive only some events. When event_types is omitted, the endpoint receives all three. The URL must be HTTPS and publicly reachable; a private or loopback address is refused. PATCH /api/v1/webhooks/{id} changes an endpoint’s url, description, event_types or enabled, or with test: true sends one ping now. GET lists endpoints and DELETE removes one.
Payload
timeline_id appears on a language change. The event id comes from the job and the event type, so a delivery received twice has the same id.
Signature
Every delivery includes anEversince-Signature header:
v1 is the HMAC-SHA256 of <t>.<raw body> with the account’s signing secret. Two v1 values appear while a secret is being rotated, and either verifies. Eversince-Event, Eversince-Delivery and Eversince-Attempt give the event type, the event id and the attempt number.
The secret is per account and signs every endpoint the account owns. GET /api/v1/webhook-secret returns it. POST creates it, or with rotate: true issues a new one while the old one keeps verifying for 24 hours. DELETE removes it, and the next delivery creates a new one. A script session can’t use this route.
Delivery
A delivery succeeds on a 2xx within 10 seconds. Redirects aren’t followed, so the registered URL has to be the final one. A failed delivery is retried after 1, 5, 30, 120, 360, 720 and 1440 minutes, eight attempts in all. After 20 failures in a row an endpoint is turned off, and turning it back on withPATCH and enabled: true resets the count.
GET /api/v1/webhooks/{id}/deliveries returns the log, newest first, with the status code and error the receiver returned. POST with a delivery_id resends that delivery, starting again from the first attempt.
