Markdown
All endpoints

Get a job

GET/v1/jobs/{id}

Get a job's progress, held amount and charges.

Price

Price
Free

This endpoint is free, so it does not accept Idempotency-Key or X-Max-Price; sending either returns invalid_params.

Parameters

idUUIDRequired

The job ID.

Headers

AuthorizationRequired

Bearer followed by your API key.

Response

A successful call returns HTTP 200 with the data in data.item, one Job object. Every field is always present: [] means none this time and null means not available or unknown.

FieldTypeDescription
idstringJob ID
status"queued" | "running" | "completed" | "partial" | "failed"queued: not started. running: in progress. completed: all done. partial: some failed. failed: all failed
totalintegerTotal number of answers
counts{ answered: integer, no_answer: integer, refused: integer, failed: integer, pending: integer }How many answers are in each status. pending means not finished yet
max_chargestringThe most this job can cost, which is the amount held at submission
heldstringThe amount still on hold
chargedstringThe amount charged so far
prompt_set{ name: string, version: string | null } | nullThe question set given at submission, or null
tagsstring[]The labels given at submission
created_atstringWhen the job was submitted
completed_atstring | nullWhen every answer finished; null until then
retry_after_secondsinteger | nullHow many seconds to wait before checking again; null once the job has finished

Common errors

An error means nothing was charged, except settlement_unknown: it means billing is not known yet, so ask again with the same Idempotency-Key. See every error code.

ErrorHTTPMeaningCharged?
not_found404It does not exist, is private or was deletedNot charged
invalid_params400A parameter is invalidNot charged
unauthorized401No credential was sent, or it is invalid, disabled or expiredNot charged
rate_limited429Too many requests, or too many calls in progressNot charged