Document jobs
Get a job
Returns the job’s current status, for any v1 operation — this is what the poll_url on an accepted submission points at.
GET
Get a job
Request · Guide: Split & classify
More details
More details
Three kinds of job share this route, told apart by
kind:extraction(ajob_...id) — a document operation. Settles to succeeded or failed, and carries usage.agent(asajob_...id) — a question asked of the agent. Settles to COMPLETED, FAILED or STOPPED, and carries the answer.export(anexjob_...id) — a run of an export rule. Settles to COMPLETED or FAILED, and carries each file’s outcome.
kind before reading the rest. Poll until the status is a settled one;
a settled job never changes again — with one exception. An agent job
that is FAILED with error.code: "SUPERAGENT_RUN_STALE" was abandoned
because it went quiet, not because the agent reported a failure, and it
can still resolve to COMPLETED or STOPPED if the run was only slow.Response
The job.
- Option 1
- Option 2
- Option 3