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

# Errors and limits

> Handle API errors and request limits.

Errors use a JSON response with an `error` field.

```json theme={null}
{
  "error": "Invalid API key"
}
```

## Request limits

The API allows 100 requests per minute for each workspace. A request over the limit returns `429`.

## Status codes

| Status | Meaning                                                           |
| ------ | ----------------------------------------------------------------- |
| `400`  | The request is missing a required value or contains invalid JSON. |
| `401`  | The API key is missing or invalid.                                |
| `404`  | The requested resource was not found.                             |
| `405`  | The endpoint does not support the request method.                 |
| `429`  | The request limit was exceeded.                                   |
