> For the complete documentation index, see [llms.txt](https://doc-api.blurit.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc-api.blurit.io/api-v2/using-the-api-v2/api-documentation/workflow.md). Agents can also search and read this documentation through its [MCP server](https://doc-api.blurit.io/~gitbook/mcp).

# Workflow

Paths below are relative to the server URL of this document.

1. Create a job.
   * POST /jobs/sync for one image of at most 20 MB. The response is the finished job (200) when processing completes within 30 seconds.
   * POST /jobs for a video, a ZIP, or any file that must not block the caller. The response is 202 and the job is queued.
2. If status is queued or processing, wait the number of seconds in retryAfter (also sent as the Retry-After header), then GET /jobs/{id}. Repeat that poll until status is succeeded or failed. Do not download before that. retryAfter is absent once the job is terminal.
3. When status is succeeded, download using the job id (responses never embed URLs or paths):
   * GET /jobs/{id}/result for the anonymized image, video, or ZIP.
   * GET /jobs/{id}/detections only if generateJsonDetections was true. When status is failed, read error.code and error.message. There is no file to download.
4. DELETE /jobs/{id} removes a finished job (succeeded or failed) and its stored files immediately. The job then disappears from list, get, and downloads. A job that is still queued or processing returns 409 JOB\_NOT\_TERMINAL (retryable).

A sync call that accepts the image but does not finish within 30 seconds returns 502 EXTERNAL\_SERVICE\_ERROR. The job still exists: poll GET /jobs/{id} with the id from the error details.

Call GET /account first if you need the accepted media types, the credit balance, or the jobs-per-minute limit.
