Get All 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”Responses
Section titled “ Responses ”Successful Response
object
Response for a batch request which does not include its jobs data.
This schema defines all the fields that can be publicly shared by the API.
object
Unique identifier for the batch.
Current batch status.
Deprecated. Use open instead. Indicates whether the batch is still accepting additional jobs. False means the batch is open; True means it is closed.
Whether the batch is open and accepting additional jobs.
Deprecated. Priority of the batch.
Target device type for the batch.
ID of the user who created the batch.
ID of the project this batch belongs to.
Timestamp when the batch was created.
Timestamp of the last batch update.
Total number of jobs in the batch.
Number of jobs grouped by status.
object
User-defined labels for organizing batches.
Priority queue on which the batch is scheduled.
Pagination information
object
Example
{ "status": "success", "message": "OK.", "code": "200", "data": [ { "complete": true, "created_at": "2025-01-15T10:30:00Z", "device_type": "FRESNEL", "end_datetime": "2025-01-15T10:35:00Z", "id": "00000000-0000-0000-0000-000000000002", "jobs_count": 3, "jobs_count_per_status": { "DONE": 3 }, "open": false, "priority": 0, "project_id": "00000000-0000-0000-0000-000000000001", "queue_priority": "MEDIUM", "start_datetime": "2025-01-15T10:31:00Z", "status": "DONE", "tags": [ "experiment-1" ], "updated_at": "2025-01-15T10:35:00Z", "user_id": "user-123" } ]}Validation Error
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}