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

# Pagination and sync

> Read long lists and catch up after downtime.

`GET /patients` and `GET /appointments` return pages:

```json theme={null}
{ "data": [ ... ], "next_cursor": "NTA" }
```

* `limit`: 1 to 100, default 50.
* Pass `next_cursor` as `cursor` for the next page. `null` means you're on the last page.

## Catching up with `updated_since`

Webhooks are the main way to stay in sync. If your endpoint was down longer than the retries cover, or you're loading data for the first time, read what changed:

```bash theme={null}
GET /api/v1/appointments?updated_since=2026-12-01T00:00:00Z&limit=100
```

Results are ordered by `updated_at`, oldest first. Store the last `updated_at` you processed and use it next time.


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