The tenant's batches, newest first, a page at a time
GET
/v1/batches
const url = 'https://example.com/v1/batches?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/batches?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 batches of this status.
template
string
Only batches of this template.
Responses
Section titled “Responses”The answer.
Media typeapplication/json
object
items
required
Array<object>
object
id
required
string
status
required
string
template
required
string
version
required
integer
format
required
string
combine
required
string
records
required
integer
counts
required
object
createdAt
required
string
finishedAt
required
string
output
required
object
next
required
Example generated
{ "items": [ { "id": "example", "status": "example", "template": "example", "version": 1, "format": "example", "combine": "example", "records": 1, "counts": {}, "createdAt": "example", "finishedAt": "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"}