Jobs

Get a job

A job's status, output and billing.

GET/v1/jobs/{job_id}

Authorization

Authorizationstringheaderrequired
Bearer ast_gw_.... The key needs the jobs:read scope.

Reads a job's latest status, output and billing. Poll this until status is succeeded, failed or canceled.

Path parameters

job_idstringrequired
The job ID.

Response

idstring
Job ID, starting with job_.
objectstring
Always job.
modelstring
The model ID you ran.
statusstring
queued, running, cancel_requested, succeeded, failed or canceled.
versioninteger
Goes up with every change. Ignore a response with a lower version than one you have.
wait_reasonstring | null
While queued: account_capacity, provider_capacity or recovery.
waiting_expires_atstring | null
When a job waiting for account capacity gives up.
client_reference_idstring | null
Your own reference, as you sent it.
outputobject
availability (not_ready, available, expired, deleted) and assets, a list of { id, type, mime_type, url }. See Results.
errorobject | null
Set when the job failed: code, message, retryable, details.
billingobject
state, accepted_max_charge_amount, reserved_amount, charged_amount, released_amount, quote_id. See Wallet.
created_atstring
RFC 3339 UTC.
updated_atstring
RFC 3339 UTC.