Skip to main content
GET
List all batches on a ledger

Authorizations

Authorization
string
header
required

Path Parameters

ledger_id
string
required

The ledger's friendly ID (e.g. led_aBcD1234eFgH5678).

Query Parameters

page
integer<int32>
default:1

The page to return, starting at 1. A value below 1 or a non-numeric value returns 400.

Required range: x >= 1
page_size
integer<int32>
default:20

Rows per page, from 1 to 200. A value below 1 counts as 1 and a value above 200 as 200; a non-numeric value uses the default.

Required range: 1 <= x <= 200
sort
string

Sortable fields: id, start_time, end_time, created_at, updated_at, tracking_id, friendly_id.

Example:

"-start_time,created_at"

filter[tracking_id][eq]
string
filter[friendly_id][eq]
string
filter[start_time][geq]
string<date-time>
filter[start_time][leq]
string<date-time>
filter[end_time][geq]
string<date-time>
filter[end_time][leq]
string<date-time>
include
string

Comma-separated list of optional, detail-depth fields to include. These are omitted by default to keep the list fast. Supported: feedstocks, output_data_points (nested under model_run).

Example:

"feedstocks,output_data_points"

response_mode
enum<string>

default returns a page of rows. summary returns the number of matching records and up to 10 sample rows. summary_with_export returns the summary and queues an export of every matching record.

Available options:
default,
summary,
summary_with_export
export_format
enum<string>
default:csv

The export's file format. Applies only with response_mode=summary_with_export.

Available options:
csv,
json

Response

Paginated list. With response_mode=summary, a count and up to 10 samples instead; with summary_with_export, the same plus a queued export.

data
object[]
required
info
object
required

Where this page sits in the full result, and the sort, filters and fields the request applied.