> ## Documentation Index
> Fetch the complete documentation index at: https://developers.vibrant-wellness.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pagination

> How list endpoints return data.

## The catalog returns everything

`GET /catalog/products` returns the **complete** catalog in one response — there is no pagination.
Cache it and refresh periodically. Filter it down with query parameters instead:

* `subtype=test|panel`
* `search=<substring>` — matches `name` or `code`

## List endpoints

Paginated list endpoints use **page-based pagination**: a 1-based `page` and a `perPage` size
(default 20, max 100) in the query, with the response echoing both and returning the total `count`
across all pages. [List patients](https://developers.vibrant-wellness.com/api-reference/patients/list.md) works this way:

```bash theme={null}
GET /patients?page=2&perPage=50
```

```json theme={null}
{ "patients": [ /* … */ ], "count": 342, "page": 2, "perPage": 50 }
```

Compute the number of pages as `ceil(count / perPage)`; you are on the last page when
`page * perPage >= count`.

> [!NOTE]
>
> 🚧 **Working in progress** — this convention is live on `GET /patients`; future list endpoints
> will follow it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.