Batches
Retrieve all batches on a ledger
Lists all batches for a specific ledger with filtering and sorting capabilities.
GET
List all batches on a ledger
Authorizations
Path Parameters
Ledger friendly ID (e.g., lgr_abc123def456)
Query Parameters
Comma-separated list of fields to sort by. Prefix with - for descending. Available fields: id, start_time, end_time, created_at, updated_at, tracking_id, friendly_id
Example:
"-start_time,created_at"
Filter by exact batch ID (friendly_id)
Controls response format. default returns paginated data. summary returns count and 10 samples. summary_with_export returns summary and triggers an async export.
Available options:
default, summary, summary_with_export File format for async export (only with response_mode=summary_with_export). Default: csv.
Available options:
csv, json Previous
Update batch inputsEdits an existing batch's inputs — the API equivalent of the dashboard's edit-batch flow. Use it to re-attach data points, adjust upstream batch allocations, or skip data point types so they are recorded as `skipped_input` rather than left missing. Each array replaces the current set for that field (it is not merged). The batch's model runs are re-staged and recomputed asynchronously, so the response returns the batch immediately, before recomputation finishes. A batch that already has allocations cannot be edited.
Next
List all batches on a ledger