Mixedbread

Pagination

OverviewLink to section

Mixedbread API uses cursor-based pagination for endpoints that return large result sets. This approach provides consistent performance regardless of dataset size and ensures reliable pagination even when data is being modified.

Supported EndpointsLink to section

Cursor-based pagination is used for:

Pagination ParametersLink to section

Request ParametersLink to section

Include these query parameters in your requests:

ParameterTypeDescriptionDefault
beforestringCursor for pagination. Returns items before this cursor.-
afterstringCursor for pagination. Returns items after this cursor.-
limitintegerMaximum number of items to return (1-100).20

Important Notes:

  • Use either before OR after, not both
  • Cursors are opaque strings - don't parse or modify them
  • Always include limit to control result size

Response FormatLink to section

All paginated responses include:

{
  "data": [...],
  "pagination": {
    "first_cursor": "eyJpZCI6InZzXzEyMyJ9",
    "last_cursor": "eyJpZCI6InZzXzQ1NiJ9", 
    "has_more": true
  }
}
FieldTypeDescription
dataarrayThe actual results for the current page
first_cursorstringCursor pointing to the first item in current page
last_cursorstringCursor pointing to the last item in current page
has_morebooleanWhether more results are available

Forward PaginationLink to section

Start with no cursor to get the first page:

GET /v1/stores?limit=10

Continue with last_cursor from the previous response:

GET /v1/stores?after=eyJpZCI6InZzXzQ1NiJ9&limit=10

Backward PaginationLink to section

Use first_cursor with before parameter:

GET /v1/stores?before=eyJpZCI6InZzXzEyMyJ9&limit=10
Last updated: April 7, 2026