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

# API Errors

> Error codes and responses

All errors return JSON:

```json theme={null}
{ "error": "Human-readable message", "code": "ERROR_CODE" }
```

| Code                 | HTTP | Description                                                               |
| -------------------- | ---- | ------------------------------------------------------------------------- |
| `UNAUTHORIZED`       | 401  | Invalid or missing credentials                                            |
| `INSUFFICIENT_SCOPE` | 403  | Scope not granted on key/token                                            |
| `SITE_NOT_LICENSED`  | 403  | Site requires active license                                              |
| `SITE_NOT_FOUND`     | 404  | Site not in team                                                          |
| `NOT_FOUND`          | 404  | Resource not found                                                        |
| `VALIDATION_ERROR`   | 400  | Invalid request body                                                      |
| `RATE_LIMITED`       | 429  | Too many requests                                                         |
| `AGENT_NOT_ENTITLED` | 402  | Automations not available on the team's plan (or insufficient AI credits) |
| `CREDITS_EXHAUSTED`  | 402  | Team AI credit pool exhausted                                             |
| `ARTICLE_LIMIT`      | 403  | Article quota exhausted (when credit enforcement is off)                  |
