Pagination
How to page through API lists. Regular lists end at last_page; the voice catalog ends by has_more.
Every API list counts pages from one. Regular lists share a single response shape and end at
last_page. The voice catalog GET /voices?provider=… signals the next page with the
has_more flag, and its total can be null. The chunking preview returns its counters in
a separate object.
Regular lists
{
"items": [ /* … */ ],
"current_page": 1,
"last_page": 5,
"per_page": 20,
"total": 93
}This object is returned in data by GET /orders, GET /templates, GET /templates/browse,
GET /voices/library, GET /voices/public, and the voice clone lists
(GET /voices/cartesia/clones, GET /voices/fishaudio/clones). The counters sit next to
items; there is no separate data.meta.
The query parameters are page (starting at 1) and per_page. The list ends when
current_page equals last_page.
List Orders
GET /templates without parameters is answered like ?page=1&per_page=30: the first page of
root templates, newest first. Until 06.11.2026 such a request returned an array of all templates
in data. That mode has been removed, so code that reads data as an array now gets an object.
Add ?page=1, read data.items and walk the pages. Find a template by name with search, by
service with service, inside a folder with folder_id.
List Templates
The voice catalog
{
"provider": "elevenlabs",
"items": [ /* … */ ],
"page": 1,
"per_page": 30,
"total": null,
"has_more": true
}GET /voices?provider=… pages the same way, with page from 1 and per_page, but answers
in its own shape.
| Regular lists | Voice catalog | |
|---|---|---|
| Page number | current_page | page |
| Page count | last_page | none |
total | always a number | a number or null |
| End of list | current_page equals last_page | has_more: false |
ElevenLabs does not report how many voices there are, so its total is null. End the loop
by has_more for every provider: then one piece of code walks any provider's catalog.
The ElevenLabs catalog depends on an external API and returns 503 with
reason: provider_unavailable when that API is unavailable. Store the page number so you can
resume from the same place.
Voice Catalogue
GET /orders/chunks/preview/{previewId} puts its counters in a separate data.page object.
| Field | Meaning |
|---|---|
data.page.current_page | page number, from 1 |
data.page.per_page | page size: 100 by default, 500 at most |
data.page.total | number of chunks in the split, across all pages |
data.page.has_more | whether more pages follow. There is no last_page here |
The neighboring data.summary field describes the whole text, not the current page, so do not
add it up across pages. {previewId} is a sha256 of 64 hex characters, not a UUID.
Lists without pages
| Operation | What data holds |
|---|---|
GET /orders/{order}/items | an array of all of the order's chunks, including retries |
GET /usage, GET /voices/tags | an array of entries |
GET /voices/filters | provider and filters: the provider's filter descriptions with values and counts |
GET /services | a map of service code → description |
These operations ignore the page parameter.
Page size and defaults
| Operation | Parameters | Range | Default |
|---|---|---|---|
GET /orders | page, per_page | page ≥ 1, per_page 1..100 | 20 |
GET /templates | page, per_page | page ≥ 1, per_page 1..30 | 30 |
GET /templates/browse | page, per_page | page ≥ 1, per_page 1..100 | 15 |
GET /orders/chunks/preview/{previewId} | page, per_page | page ≥ 1, per_page 1..500 | 100 |
GET /voices?provider=… | page, per_page | page ≥ 1, per_page 1..50 for ElevenLabs, 1..100 for the others | 30 |
GET /voices/library, /voices/public | page, per_page | page ≥ 1, per_page 1..100 | 20 |
GET /voices/{provider}/clones | page, per_page | page ≥ 1, per_page 1..100 | 20 |
An out-of-range value returns 422 with the field in errors. The exception is per_page on
GET /voices/library and GET /voices/public: the server replaces a value outside 1..100
with the nearest bound, without an error. A non-integer per_page still returns 422 there.
- What happened
The request was not accepted and nothing was created. A field error arrives in the common envelope:
{"success": false, "message": "…", "errors": {"field": ["…"]}}.- What to do right now
First check whether the body has
errors. If it does, fix the listed fields. If there is noerrorsbut there is areason, the request fields are not the problem: the same body gets the same refusal. Open the page for that code.
There is no cursor pagination
Responses have no cursor, next_cursor or next_page_url. The pag=cursor parameter passes
validation and does not return 422, but the server ignores it and returns the regular paged
shape. Page through lists with page and per_page.
How to walk an entire list
Paged results are not a consistent snapshot: the data changes while you move through the pages.
GET /orders returns the newest orders first. One new order shifts the results by one
position, so a record on a page boundary shows up twice or not at all.
- Remove duplicates by
idon the client. This works with every response shape. - Narrow the selection so it does not grow while you walk it.
GET /ordershas thestatus,task_type[]andtemplate_idfilters. A selection by a terminal status barely changes, whilestatus=in_progresschanges all the time. - Stop on an end-of-list signal, not a counter:
current_pageequalslast_page, orhas_moreisfalse.totalis recalculated on every request. It works for a progress indicator, not for an exit condition. - Use larger pages.
per_page=100instead of 20 cuts the number of requests fivefold, and with it the chance of a429along the way. - Pause between pages. Walking a large catalog is a common way to hit the key's request rate limit. See Limits and the 429 code.
Do
Keep a set of the ids you have seen, page until has_more is false or current_page
equals last_page, and after a 503 from the catalog, resume from the same page.
Don't
Compute the page count once as Math.ceil(total / per_page) and iterate blindly. total goes
stale during the walk, and the ElevenLabs catalog has none at all.
This page for AI
Updated 11/09/2026 · API version 1.0.0