# Async jobs

Use jobs when you don't want to hold a connection open while a video renders, or when you
render many videos at once.

1. `POST /v1/jobs` → `202` with `status: queued`. The maximum estimate is reserved from
   your wallet (`402 insufficient_credits` if it is short; nothing is queued).
2. The job starts (`processing`) when a slot is free. Up to **3 jobs per key** run at the
   same time; more wait in the queue, oldest first.
3. It ends as one of:
   - `succeeded`: `result` holds the video; you are charged the measured amount and the rest
     of the reservation is released.
   - `failed`: `error: { code, message }`; refunded in full. `job_timeout` means it did not
     finish in time (10 minutes for `sign_video` and `captions`; Sign Morph renders wait in
     their own queue and may take longer).
   - `canceled`: you called `POST /v1/jobs/{id}/cancel`; refunded in full.
4. Find out by polling `GET /v1/jobs/{id}` (every few seconds is fine; reads are free) or,
   better, with a webhook (`job.succeeded`, `job.failed`, `job.canceled`).

Jobs are kept for 30 days.
