Get Ingestion Job State
ingestion_getRead the current state of an ingestion job (paper creation or document ingestion). Returns the status plus a derived awaiting gate ('triage' | 'confirmation' | null), whether it is terminal, and the next action to take. Poll this after starting a job: a paper-creation job parks at awaiting_confirmation (then call paper_confirm) — it does NOT run to complete on its own. Stop polling on a terminal status (complete | failed | cancelled) or when an action is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ID of the ingestion job to read the current state of. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | The ingestion job kind (paper_bundle, student_batch, source_document, …). | |
| error | Yes | Failure detail, when status is failed. | |
| job_id | Yes | ||
| status | Yes | Raw ingestion status. | |
| awaiting | Yes | The gate the job is parked at, or null if none. | |
| terminal | Yes | True once the job will not change on its own. | |
| created_at | Yes | ISO-8601 creation timestamp. | |
| needs_action | Yes | Human-readable next step for the caller. | |
| processed_at | Yes | ISO-8601 completion timestamp, or null if not yet processed. | |
| attempt_count | Yes | Processing attempts so far. | |
| exam_paper_id | Yes | The minted paper's id, once one exists. | |
| triage_summary | Yes | Triage explanation, only while parked at the triage gate. | |
| triage_issue_count | Yes | How many triage issues, only while parked at the triage gate. |