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

# Errors and rate limits

> Status codes, error bodies and request limits.

## Status codes

| Status | Meaning |
| - | - |
| `200` | Success. |
| `400` | Something in the request is wrong, such as a filter value, sort field, cursor or page size. The body says what. |
| `401` | No valid API key: missing, unknown, revoked or expired. |
| `403` | The key has no scope for this data. |
| `404` | The item does not exist, or belongs to another organization. |
| `429` | Too many requests. Wait and try again. |
| `5xx` | Something went wrong on our side. Try again later. |

A `400` has a [problem details](https://www.rfc-editor.org/rfc/rfc9457) body that says what is wrong. Other errors, such as `401`, `403` and `429`, can have an empty body: rely on the status code, not on the body. For example, an invalid sort field returns:

```json theme={null}
{
  "type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
  "title": "Invalid request",
  "status": 400,
  "detail": "Cannot sort on 'total'. Sortable fields: createdAt, updatedAt."
}
```

## Rate limits

Each API key can make **120 requests per minute**. Above that you get `429 Too Many Requests` with a
`Retry-After` header: the number of seconds to wait before the next request.

```http theme={null}
HTTP/1.1 429 Too Many Requests
Retry-After: 23
```

Wait that many seconds, then continue. The limit counts per key, so another key of your organization
is not affected.

To stay well under the limit, use `pagination[limit]=100` and [fetch only what changed](https://developers.weticket.com/guides/syncing.md)
instead of everything.


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