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

# Pagination, errors and rate limits

> How every API v2 endpoint pages results, reports errors and limits requests.

## Responses

* A successful response wraps its result in `data`.
* A value that doesn't exist is `null`, never an empty string.
* Query parameters are `snake_case`. An unknown or misspelled parameter returns `400`, so a typo never returns unfiltered data.

## Pagination

List endpoints take two query parameters:

| Parameter | Default | Limits |
| - | - | - |
| `page` | `1` | `1` or more |
| `limit` | `50` | `1` to `100` |

Each list response includes a `pagination` object:

```json theme={null}
{
  "data": [],
  "pagination": { "page": 2, "limit": 50, "total_count": 128, "total_pages": 3 }
}
```

Request pages until `page` equals `total_pages`. To keep a copy of your meetings up to date, use [Sync meetings](https://docs.triplesession.com/api-v2/sync-calls.md) instead of paging through the whole list again.

## Errors

Every error has the same shape:

```json theme={null}
{ "error": { "message": "Missing required API scope" } }
```

| Status | When |
| - | - |
| `400` | A path or query parameter is invalid or unknown. The message names it. |
| `401` | The key is missing, unknown, expired or revoked. |
| `403` | The key is valid but lacks the endpoint's scope, or the workspace is outside the key's access. |
| `404` | The resource doesn't exist, or the key can't see it. Private meetings answer `404`. |
| `429` | A rate limit is exceeded. Wait for `Retry-After` seconds. |
| `500` | Unexpected error. Retry with exponential backoff. |

Treat `400`, `401`, `403` and `404` as final: retrying the same request gets the same answer.

## Rate limits

| Applies to | Per minute | Per hour |
| - | - | - |
| Each API key | 120 | 3,600 |
| All keys of your company together | 300 | 9,000 |

A request over any limit returns `429` with a `Retry-After` header, in seconds. The message says whether the key or the company limit was hit.

Successful responses and `429` responses carry rate-limit headers:

| Header | Meaning |
| - | - |
| `X-RateLimit-Limit` | The limit of the window below. |
| `X-RateLimit-Remaining` | Requests left in that window. |
| `X-RateLimit-Reset` | When that window resets, as a Unix timestamp. |
| `X-RateLimit-Active-Window` | `minute`, `hour`, `company-minute` or `company-hour`. On a success, the window with the fewest requests left. On a `429`, the exhausted window with the longest wait. |

Each window also has its own set of headers: `X-RateLimit-Minute-*`, `X-RateLimit-Hour-*`, `X-RateLimit-Company-Minute-*` and `X-RateLimit-Company-Hour-*`.

> [!TIP]
>
> Watch `X-RateLimit-Remaining` and slow down before it reaches zero. If you need higher limits, email **[support@triplesession.com](mailto:support@triplesession.com)**.


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