Skip to main content
List endpoints in the Debbie API are paginated with the page and pageSize query parameters.

Parameters

  • page — the page to get, starting from 0. Defaults to 0.
  • pageSize — the number of items per page. Each endpoint documents its default and maximum page size.

Response format

Paginated endpoints return the items of the requested page together with a meta object:

Iterating through all pages

The response does not include a total count. To fetch all items, keep requesting the next page until a page contains fewer items than pageSize:
When items.length < pageSize, you have reached the last page.

Best practices

  • Use a fixed pageSize for all requests in an iteration — changing it between pages will skip or repeat items
  • Requesting a page beyond the last one returns an empty items array