Jobs

List jobs, newest first

How a lost id is recovered. Newest first across every product, or one with product. Every filter runs inside each product's read — settled and status narrow what is read, never a page after it was cut — so each page is full while older matches exist, and next_cursor and next_before are present exactly when there is another page, whether one product is listed or all of them. Page with cursor: it resumes right after the last job a page read, so jobs that share a timestamp across a page's edge are each listed once; before, the older cursor, resumes strictly older than a timestamp and can skip one. Statuses are as fresh as each job's last update; GET /jobs/{id} refreshes one.

GET
/v1/jobs
GET
/v1/jobs
List jobs, newest first
How a lost id is recovered.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
productany
limitinteger
1 to 100.
settledstring
true for jobs that have stopped (succeeded, failed or cancelled), false for those still queued or running. Any other value is refused 400 bad_value. One of "true", "false".
statusstring
One or more of queued, running, succeeded, failed, cancelled, separated by commas. Combined with settled, a job must match both. An unknown word is refused 400 bad_value with the allowed list.
beforestring
The older cursor, still accepted: feed back the next_before from the previous page, and the next page starts strictly older than it — a job made in the same microsecond as the last one the page read is skipped. Prefer cursor.
cursorstring
Cursor. Feed back the next_cursor from the previous page, unchanged; the next page starts right after the last job that page read, so a job sharing its timestamp is never skipped. Not with before: sending both is 400 invalid_cursor, as is a cursor no page answered.
modelstring
Only jobs submitted to this address — the string each job prints as model.
List jobs, newest first
curl --request GET \
  --url 'https://api.auray.ai/v1/jobs' \
  --header 'Authorization: Bearer <api-key>'
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "job_id": "<string>",
      "object": "<string>",
      "product": "<string>",
      "model": "<string>",
      "status": "<string>",
      "credits_charged": 123,
      "credits_reserved": 123,
      "settled": true,
      "origin": "<string>",
      "created_at": "<string>"
    }
  ],
  "next_before": "<string>",
  "next_cursor": "<string>",
  "request_id": "<string>"
}
List jobs, newest first
curl https://api.auray.ai/v1/jobs \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "job_id": "<string>",
      "object": "<string>",
      "product": "<string>",
      "model": "<string>",
      "status": "<string>",
      "credits_charged": 123,
      "credits_reserved": 123,
      "settled": true,
      "origin": "<string>",
      "created_at": "<string>"
    }
  ],
  "next_before": "<string>",
  "next_cursor": "<string>",
  "request_id": "<string>"
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — jobs:read.

Query Parameters

productany
limitinteger
1 to 100.
settledstring
true for jobs that have stopped (succeeded, failed or cancelled), false for those still queued or running. Any other value is refused 400 bad_value. One of "true", "false".
statusstring
One or more of queued, running, succeeded, failed, cancelled, separated by commas. Combined with settled, a job must match both. An unknown word is refused 400 bad_value with the allowed list.
beforestring
The older cursor, still accepted: feed back the next_before from the previous page, and the next page starts strictly older than it — a job made in the same microsecond as the last one the page read is skipped. Prefer cursor.
cursorstring
Cursor. Feed back the next_cursor from the previous page, unchanged; the next page starts right after the last job that page read, so a job sharing its timestamp is never skipped. Not with before: sending both is 400 invalid_cursor, as is a cursor no page answered.
modelstring
Only jobs submitted to this address — the string each job prints as model.

Response

application/json

OK

objectstring
One of "list".
dataobject[]
Show child attributes
idstring
job_idstring
The job's one id on every host: id here, request_id on the queue host (the queue protocol's name for it).
objectstring
One of "job".
productstring
external covers every model somebody else runs, each at its own address. chat is accepted and delivers no webhook event: a chat turn is answered by the request that paid for it. One of "photo", "music", "video", "threed", "chat", "external".
modelstring
The address the job was submitted to. May be null.
statusstring
Five words, whatever the product. Our internals disagree; you never see that. One of "queued", "running", "succeeded", "failed", "cancelled".
credits_chargedinteger
What the job cost, after any refund — the ledger's net for it, the same figure on every door.
credits_reservedinteger
What was taken when the job was charged, before any refund.
settledboolean
originstring
Which door the job came in by. NOT the same vocabulary as /usage, which says app rather than ui for the same idea — the jobs tables and the credit ledger were given different words and both are load-bearing. Chat turns always read ui: chat_messages has no origin column. One of "ui", "api".
created_atstring
When it was submitted. This is the field the list is ordered by, and the value to feed back as ?before=.
next_beforestring
Present exactly when there is another page. It is the created_at of the last row read for this page. May be null.
next_cursorstring
Present exactly when there is another page. Pass it back as cursor, unchanged: it names the last job this page read to the microsecond, so the next page neither repeats nor skips one.
request_idstring
Mirrored in the X-Request-Id header. It sits here, on the envelope, not on each item.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

List jobs, newest first
curl https://api.auray.ai/v1/jobs \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "object": "<string>",
  "data": [
    {
      "id": "<string>",
      "job_id": "<string>",
      "object": "<string>",
      "product": "<string>",
      "model": "<string>",
      "status": "<string>",
      "credits_charged": 123,
      "credits_reserved": 123,
      "settled": true,
      "origin": "<string>",
      "created_at": "<string>"
    }
  ],
  "next_before": "<string>",
  "next_cursor": "<string>",
  "request_id": "<string>"
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.