Skip to content

Results are limited to the current section : Cloud Services

Get All Batches

GET
/api/v1/batches

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.

order_by
Order By
string
default: created_at
order_by_direction
string
Allowed values: ASC DESC
limit
Limit
integer
default: 100 > 0 < 101
offset
Offset
integer
0
id
Id

Unique id for the batch

Array<string>
default:

Unique id for the batch

id__starts_with
Id Starts With

First characters of the batch id

string
""

First characters of the batch id

project_id
Project Id

Owner project of the batch

Array<string>
default:

Owner project of the batch

user_id
User Id

Owner user of the batch

Array<string>
default:

Owner user of the batch

device_type
Device Type

Device type enum

Array<string>
default:

Device type enum

status

Batch status type enum

Array<string>
default:
Allowed values: PENDING RUNNING DONE CANCELED CANCELING TIMED_OUT ERROR PAUSED

Batch status type enum

complete
deprecated
Complete

Deprecated. Use open instead.

boolean
""

Deprecated. Use open instead.

open
Open

Filter by whether the batch is still open.

boolean
""

Filter by whether the batch is still open.

min_jobs
Min Jobs

Minimum number of jobs in the batch

integer
""

Minimum number of jobs in the batch

max_jobs
Max Jobs

Maximum number of jobs in the batch

integer
""

Maximum number of jobs in the batch

start_date
Start Date

Time when the emulator or QPU indicated a batch was started

string format: date-time
""

Time when the emulator or QPU indicated a batch was started

end_date
End Date

Time when the emulator or QPU indicated a batch finished, failed or was cancelled

string format: date-time
""

Time when the emulator or QPU indicated a batch finished, failed or was cancelled

queue_priority

Priority of the batch in the queue.

Array<string>
default:
Allowed values: CRITICAL HIGH MEDIUM LOW FREE

Priority of the batch in the queue.

tag
Tag

Tag used to identify the batch

string
""

Tag used to identify the batch

Successful Response

HeaderPaginatedResponse[ProducedBatchResponse]

A list of responses with pagination information.

For backwards compatibility, this also exposes pagination using the following header format:

Access-Control-Expose-Headers: Content-Range
Content-Range: $FIRST_ITEM_IN_BATCH-$LAST_ITEM_IN_BACH/$TOTAL_ITEMS_AVAILABLE
object
status
string
Allowed values: success fail error
message
Message
string
default: OK.
code
Code
string
default: 200
data
required
Data
Array<object>
ProducedBatchResponse

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
id
required
Id

Unique identifier for the batch.

string format: uuid
parent_id
required
Parent Id

ID of the parent batch if created from a retry.

string format: uuid
status
required

Current batch status.

string
Allowed values: PENDING RUNNING DONE CANCELED CANCELING TIMED_OUT ERROR PAUSED
complete
required
Complete

Deprecated. Use open instead. Indicates whether the batch is still accepting additional jobs. False means the batch is open; True means it is closed.

boolean
open
required
Open

Whether the batch is open and accepting additional jobs.

boolean
priority
required
Priority

Deprecated. Priority of the batch.

integer
device_type
required
Device Type

Target device type for the batch.

string
user_id
required
User Id

ID of the user who created the batch.

string
project_id
required
Project Id

ID of the project this batch belongs to.

string format: uuid
created_at
required
Created At

Timestamp when the batch was created.

string format: date-time
updated_at
required
Updated At

Timestamp of the last batch update.

string format: date-time
jobs_count
required
Jobs Count

Total number of jobs in the batch.

integer
jobs_count_per_status
required
Jobs Count Per Status

Number of jobs grouped by status.

object
tags
required
Tags

User-defined labels for organizing batches.

Array<string>
unique items
configuration
required
Configuration

Deprecated. Use backend_configuration. Extra configuration for job execution.

object
backend_configuration
required
Backend Configuration

Serialized emulator backend configuration.

string
webhook
required
Webhook

URL where job results are sent via webhook.

string
start_datetime
required
Start Datetime

Timestamp when processing started on hardware.

string format: date-time
end_datetime
required
End Datetime

Timestamp when processing finished, errored, or was canceled.

string format: date-time
queue_priority
required

Priority queue on which the batch is scheduled.

string
Allowed values: CRITICAL HIGH MEDIUM LOW FREE
Example
{
"id": "00000000-0000-0000-0000-000000000002",
"status": "DONE",
"complete": true,
"open": false,
"priority": 0,
"device_type": "FRESNEL",
"user_id": "user-123",
"project_id": "00000000-0000-0000-0000-000000000001",
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:35:00Z",
"jobs_count": 3,
"jobs_count_per_status": {
"DONE": 3
},
"tags": [
"experiment-1"
],
"start_datetime": "2025-01-15T10:31:00Z",
"end_datetime": "2025-01-15T10:35:00Z",
"queue_priority": "MEDIUM"
}
pagination
required
JSendPagination

Pagination information

object
total
required
Total
integer
start
required
Start
integer
end
required
End
integer

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string