> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.outpave.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.outpave.com/_mcp/server.

# Pagination and rate limits

## Pagination

List operations are cursor-based.

| Parameter | Description                                              |
| --------- | -------------------------------------------------------- |
| `limit`   | The most items to return, from 1 to 100. Defaults to 25. |
| `after`   | The `pageInfo.endCursor` of the previous page.           |

Every list response has `data` and `pageInfo`:

```json
{
  "data": [],
  "pageInfo": { "hasNextPage": true, "endCursor": "eyJr..." }
}
```

Keep reading while `hasNextPage` is `true`. A page can hold fewer items than `limit`, even none, while more may follow. `endCursor` is `null` exactly when `hasNextPage` is `false`.

```bash
CURSOR=""
while :; do
  PAGE=$(curl -s "https://$API_HOST/api/v2/cards?limit=100${CURSOR:+&after=$CURSOR}" \
    -H "Authorization: Bearer $TOKEN" \
    -H "Account-Holder: $ACCOUNT_HOLDER_ID")
  echo "$PAGE" | jq -c '.data[]'
  [ "$(echo "$PAGE" | jq -r .pageInfo.hasNextPage)" = "true" ] || break
  CURSOR=$(echo "$PAGE" | jq -r '.pageInfo.endCursor | @uri')
done
```

A cursor is valid for 24 hours, and only for the same filters, the same API credential owner and the same account holder. Otherwise the request returns `400 INVALID_CURSOR`; restart from the first page.

## Rate limits

Limits apply per API key and are shared with v1.

| Key role   | `burst` (per 10 seconds) | `sustained` (per hour) |
| ---------- | ------------------------ | ---------------------- |
| `Admin`    | 60                       | 3,600                  |
| `ReadOnly` | 30                       | 1,800                  |

These are defaults. A key can have custom limits; the headers show the ones in effect.

Responses carry your remaining budget for each rate limit policy:

| Header             | Example               | Meaning                                                             |
| ------------------ | --------------------- | ------------------------------------------------------------------- |
| `RateLimit-Policy` | `"burst"; q=60; w=10` | Requests allowed (`q`) per window of seconds (`w`).                 |
| `RateLimit`        | `"burst"; r=57; t=6`  | Requests remaining (`r`) and seconds until the window resets (`t`). |

When the budget runs out the API returns `429 RATE_LIMIT_EXCEEDED` with a `Retry-After` header in seconds. Wait that long before you retry.

## Request IDs

Every response carries an `X-Request-Id` header, and every problem repeats it as `requestId`. Log it and quote it when you contact support. You can also send your own `X-Request-Id`, up to 128 characters of letters, digits and `._:-`, to correlate the call in your logs. The response header is always generated by the server.