# Authentication, Security & Quotas

> Base URL: `https://api.wowaddons.gg` (cookie-less JSON API; `https://wowaddons.gg/api/v1/*` also remains active as an alias). All `/v1/*` data endpoints require a personal API key, except `/v1/openapi.json` and `/` which are public.

## Supported headers

Pass your key using either standard HTTP header. Query string keys (`?api_key=...`) are deliberately rejected so secrets never end up in browser history, Referer headers or proxy logs.

### Bearer (recommended)

```http
GET /v1/addons HTTP/1.1
Host: api.wowaddons.gg
Authorization: Bearer wa_live_xxxxxxxxxxxxxxxxxxxxxxxx
```

### X-Api-Key

```http
GET /v1/addons HTTP/1.1
Host: api.wowaddons.gg
X-Api-Key: wa_live_xxxxxxxxxxxxxxxxxxxxxxxx
```

## Rate limits & abuse protection

| Name | Type | Description |
| --- | --- | --- |
| `Per-minute limit` | `120 req/min` | Enforced per API key. Exposed via X-RateLimit-Limit. |
| `Daily limit` | `5,000 req/day` | Rolling 24h cap per API key (5 000 req/jour). Exposed via X-RateLimit-Day-Limit. |
| `Keys per account` | `5 max` | Create separate keys per bot or service and revoke any compromised key in one click from your account. |
| `Invalid key guard` | `60 / 10 min` | Repeated 401 attempts from one IP are throttled with HTTP 429. |

## HTTP status codes

| Name | Type | Description |
| --- | --- | --- |
| `200 OK` | `JSON` | Request succeeded. Responses set Cache-Control: private, no-store and CORS headers. |
| `400 Bad Request` | `JSON` | Missing required parameter (for example `id` on `/v1/addon`). |
| `401 Unauthorized` | `JSON` | Missing, malformed, unknown or revoked API key. |
| `404 Not Found` | `JSON` | Addon id or route does not exist. |
| `429 Too Many Requests` | `JSON` | Rate limit exceeded. Respect the Retry-After response header (seconds). |
