Get All Batches
GET
/api/v1/batches
const url = 'https://example.com/api/v1/batches?order_by=created_at&order_by_direction=ASC&limit=100&offset=0';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/api/v1/batches?order_by=created_at&order_by_direction=ASC&limit=100&offset=0' \ --header 'Authorization: Bearer <token>'Retrieve a paginated list of all batches for the authenticated user.
Supports ordering, pagination, and filtering via query parameters.
Returns: A paginated collection of batches with job status counts.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”order_by
Order By
string
order_by_direction
SortDirection
string
limit
Limit
integer
offset
Offset
integer
id
project_id
user_id
device_type
status
start_date
end_date
queue_priority
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
HeaderPaginatedResponse[ProducedBatchResponse]
object
status
JSendStatus
string
message
Message
string
code
Code
string
data
required
Data
Array
pagination
required
JSendPagination
Pagination information
object
total
required
Total
integer
start
required
Start
integer
end
required
End
integer
Example
{ "status": "success", "message": "OK.", "code": "200"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}