Skip to main content
GET
List batches

Overview

Lists the key’s batches, newest first. after is an integer offset, not an object id: add limit to it for each next page.

Authorizations

Authorization
string
header
required

Morph API key, passed as Authorization: Bearer sk-.... Create keys at https://www.morphllm.com/dashboard/api-keys.

Query Parameters

limit
integer
default:20

How many batches to return in this page. Batches per page. Default 20, max 100.

Required range: 1 <= x <= 100
Example:

20

after
integer

Pagination offset into your batches. An integer count, not an object id, so page manually rather than with the SDK auto-paginator. Offset cursor: how many batches to skip. Add limit to it for each next page.

Required range: x >= 0
Example:

20

Response

The requested page of batches.

A page of batches.

object
string
required

Object type of a batch page, always list.

Example:

"list"

data
object[]
required

Batches in this page.

Example:
first_id
string | null
required

Id of the first batch in this page, or null when the page is empty.

Example:

"batch_5f4e3d2c-1b0a-4f9e-8d7c-6b5a4f3e2d1c"

last_id
string | null
required

Id of the last batch in this page, or null when the page is empty.

Example:

"batch_5f4e3d2c-1b0a-4f9e-8d7c-6b5a4f3e2d1c"

has_more
boolean
required

Whether more batches exist after this page.

Example:

false