Job states
queued, dispatching, submitted, polling and processing are active. needs_review is held and not terminal. completed, partially_completed, failed and redacted are terminal.
Read a job with its captions
GET /v1/jobs/{job_id}?include=items returns the job with an items array: every item, in input order. One call gives you the state, the cost and every caption.
include the job comes back without items, exactly as before. include accepts only items; anything else returns 400 invalid_query with param set to include.
settled_credits is what the job cost. A completed item carries result.caption_text. A failed item carries a sanitized error with only code and message (see item errors) and costs nothing. Provider payloads and credentials are never exposed.
GET /v1/jobs/{job_id}/items returns the same items as a cursor-paginated list, for when you want them a page at a time.
Poll until it’s done
captions() and rewrite() submit, wait and return the captions in one call (SDKs).
If you poll yourself:
- Start about one second after acceptance and back off to five seconds.
- Stop on a terminal state or
needs_review. - On
429, waitRetry-Afterseconds. Each poll counts toward the key’s 120 requests per minute. - After a network error or
503on submission, retry with the originalIdempotency-Key.
Held for review
A job reachesneeds_review when Joip can’t confirm what the caption provider did with an item. Joip holds the job’s remaining reservation until it reconciles the outcome, which takes far longer than a polling loop. Stop polling and keep the job ID. The SDK polling methods return a held job instead of waiting, and the one-call helpers throw JoipJobHeldError.
Never resubmit a held job’s media under a new idempotency key: you would pay twice if the first attempt succeeded. Contact support with the job ID and X-Request-Id.
Find jobs
GET /v1/jobs lists your jobs, newest first, and accepts two optional filters beside limit and cursor:
400 invalid_query with param naming the filter. The SDKs’ iterJobs({ state, type }) and iter_jobs(state=..., type=...) walk every page for you.
Jobs are account-scoped. Another account’s job ID returns 404 job_not_found.