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

# Pagination

> How to paginate through large result sets

List endpoints use cursor-based pagination to handle large datasets.

## Response Format

Paginated responses include three fields:

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

| Field | Type | Description |
| - | - | - |
| `data` | array | Array of resources |
| `next_cursor` | string \| null | Cursor for next page (null if no more pages) |
| `has_more` | boolean | Whether more results exist |

## Fetching Pages

**First Page**

Make a request without a cursor parameter:

```bash theme={null}
curl "https://api.solidroad.com/simulations?limit=50" \
  -H "Authorization: Bearer your_api_key" \
  -H "Solidroad-Version: 1"
```

**Subsequent Pages**

Use the `next_cursor` from the previous response:

```bash theme={null}
curl "https://api.solidroad.com/simulations?limit=50&cursor=eyJpZCI6MTIzLCJ0aW1lc3RhbXAiOiIyMDI1LTEyLTAxVDEwOjMwOjAwLjAwMFoifQ==" \
  -H "Authorization: Bearer your_api_key" \
  -H "Solidroad-Version: 1"
```

## Limit Parameter

Control page size with the `limit` parameter:

* **Default**: 50 items per page
* **Maximum**: 200 items per page
* **Minimum**: 1 item per page

```bash theme={null}
curl "https://api.solidroad.com/simulations?limit=100" \
  -H "Authorization: Bearer your_api_key" \
  -H "Solidroad-Version: 1"
```

## Cursors

> [!WARNING]
>
> Never manually construct cursor values. Always use the `next_cursor` provided in API responses.

Cursors are opaque strings that:

* Should not be parsed or modified
* May expire after a period of time
* Are only valid for the original query parameters

If you change filter parameters mid-pagination, start from the first page again.

## Endpoints with Pagination

* `GET /simulations` - List simulations


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