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

# Pagination

> Cursor pagination, stable under concurrent writes.

List endpoints return:

```json theme={null}
{ "object": "list", "data": [ ... ], "has_more": true }
```

Page with `limit` (1–100, default 25) and `starting_after` — the `id` of the last item of the previous page. Ordering is newest-first (`id` descending), so pages stay stable while new sources are being created:

```bash theme={null}
curl "https://app.pepline.ai/api/v1/knowledge_sources?limit=50" -H "..."
# next page:
curl "https://app.pepline.ai/api/v1/knowledge_sources?limit=50&starting_after=42" -H "..."
```

Keep requesting until `has_more` is `false`. List responses omit `body` (sources can be hundreds of KB) — retrieve a single source for its text.
