The tenant's jobs, newest first, a page at a time
GET
/v1/jobs
const url = 'https://example.com/v1/jobs?status=queued';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/jobs?status=queued' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
At most this many (1 to 200, 50 by default).
cursor
string
The page after the one whose next this is.
status
string
Only jobs of this status.
template
string
Only jobs of this template.
Responses
Section titled “Responses”The answer.
Media typeapplication/json
object
items
required
Array<object>
object
id
string
status
required
string
template
string
version
integer
format
string
attempts
required
integer
createdAt
required
string
startedAt
required
null | string
finishedAt
required
null | string
queue
object
record
integer
job
string
output
object
next
required
Example generated
{ "items": [ { "id": "example", "status": "example", "template": "example", "version": 1, "format": "example", "attempts": 1, "createdAt": "example", "startedAt": "example", "finishedAt": "example", "queue": {}, "record": 1, "job": "example", "output": {} } ], "next": "example"}No key, or not a valid one.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}The key lacks the scope, or its tenant is suspended or deleted.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}