Get a job
GET /v1/jobs/{id}
A job: status, outputs and their download URLs.
Download URLs work until expires_at. After the job’s files are deleted, it’s still listed for 30 days without inputs or outputs. With wait, a job still running is answered when it ends or after that many seconds (up to 30), whichever is first: a loop of these needs no pause of its own.
API key with the read scope.
Request
curl "https://api.formatjet.com/v1/jobs/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D" \ -H "Authorization: Bearer $FORMATJET_API_KEY"Path parameters
| Field | Type | Description |
|---|---|---|
id required | string |
Query parameters
| Field | Type | Description |
|---|---|---|
wait | integer | Seconds to wait for a running job to end before answering, 0 (the default) to 30 Default 0. |
Responses
200 OK
The job
| Field | Type | Description |
|---|---|---|
id | string | |
status | "created" | "awaiting_upload" | "queued" | "processing" | "completed" | "failed" | "canceled" | awaiting_upload while a URL input is being fetched |
mode | "live" | "test" | |
conversion | string | |
progress | number | |
steps | object[] | Every step in order: each converts what the step before made, and the last makes the output |
steps[].op | "convert" | |
steps[].conversion | string | |
steps[].from | string (a format ID) | |
steps[].to | string (a format ID) | |
steps[].options | object (map) | |
steps[].status | "created" | "awaiting_upload" | "queued" | "processing" | "completed" | "failed" | "canceled" | |
steps[].credits | number | null | What the step costs if the job succeeds; null once the job’s details have expired |
steps[].units | number | null | The pages or minutes the step counted (1 for a step priced per file); null until measured |
steps[].engine | string | null | |
steps[].engine_version | string | null | |
input | object | The file, or the first of inputs |
input.upload_id | string | |
input.format | string (a format ID) | |
input.bytes | number | null | |
input.filename | string | null | |
inputs | object[] | Every input in order, input first: more than one when the job joins files. Empty once the job’s details have expired. |
inputs[].upload_id | string | |
inputs[].format | string (a format ID) | |
inputs[].bytes | number | null | |
inputs[].filename | string | null | |
outputs | object[] | |
outputs[].id | string | |
outputs[].filename | string | null | |
outputs[].bytes | number | |
outputs[].mime | string | |
outputs[].url | string | null | Null once the file is deleted |
outputs[].expires_at | string | null | |
outputs[].deleted_at | string | null | When the file was deleted from storage; null until then |
estimate | object | What the job costs, and what that counts (P3-2) |
estimate.credits | number | What the job costs if it succeeds. A conversion priced per page or minute counts one unit until the file is measured, then what its pages or minutes cost |
estimate.unit | "file" | "page" | "output_minute" | "audio_minute" | What the conversion is priced by |
estimate.units | number | null | Units counted: 1 for a conversion priced per file; the pages to read or started minutes once the file is measured, null until then |
credits | number | Credits charged: only for a job that succeeded |
engine | string | null | |
engine_version | string | null | |
error | object | null | |
error.code | string | |
error.detail | string | |
metadata | object (map) | |
created_at | string | |
finished_at | string | null | |
links | object | |
links.self | string | |
links.events | string |
{ "id": "job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D", "status": "completed", "mode": "live", "conversion": "word-to-pdf", "progress": 100, "steps": [ { "op": "convert", "conversion": "word-to-pdf", "from": "docx", "to": "pdf", "options": {}, "status": "completed", "credits": 2, "units": 1, "engine": "office", "engine_version": "libreoffice-25.8+runner-7" } ], "input": { "upload_id": "up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D", "format": "docx", "bytes": 48213, "filename": "report.docx" }, "inputs": [ { "upload_id": "up_01JBXA3Q6M2T8V4W9Y5Z7B1C3D", "format": "docx", "bytes": 48213, "filename": "report.docx" } ], "outputs": [ { "id": "file_01JBXA3R2N5P7Q9S1T3V5W7X9Z", "filename": "report.pdf", "bytes": 61874, "mime": "application/pdf", "url": "https://<account>.r2.cloudflarestorage.com/formatjet-files-us/out/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D/file_01JBXA3R2N5P7Q9S1T3V5W7X9Z?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Signature=…", "expires_at": "2026-10-25T10:00:06.000Z", "deleted_at": null } ], "estimate": { "credits": 2, "unit": "file", "units": 1 }, "credits": 2, "engine": "office", "engine_version": "libreoffice-25.8+runner-7", "error": null, "metadata": {}, "created_at": "2026-10-24T10:00:02.000Z", "finished_at": "2026-10-24T10:00:06.000Z", "links": { "self": "https://api.formatjet.com/v1/jobs/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D", "events": "https://api.formatjet.com/v1/jobs/job_01JBXA3Q6M2T8V4W9Y5Z7B1C3D/events" }}Errors
Problem documents (application/problem+json); see Errors.
| Status | Code | When |
|---|---|---|
| 401 | unauthorized | No API key, or one that’s unknown or revoked. |
| 403 | forbidden | The key lacks the read scope, or the plan has no API. |
| 404 | not_found | No such job of this key’s mode, or its files are gone. |
| 429 | rate_limited | More requests than the plan allows in 10 seconds: wait Retry-After seconds. |