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
Two 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.
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.Authorizations
API key for authentication
Path Parameters
Response
The job.
- Option 1
- Option 2
Discriminator. extraction for a document job; agent for a question asked of the agent, which reports different statuses and a different result.
Available options:
extraction Example:
"extraction"
Available options:
queued, succeeded, failed Echo of the submitted client_ref.
Present only when status is succeeded.
Present only when status is failed.
Present once the job has settled.