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

# Autenticación

> Cada solicitud de cliente lleva un token bearer.

Envía tu clave de API como token bearer en cada solicitud:

```bash theme={null}
curl "$BASE/v1/async/task/$TASK_ID" \
  -H "Authorization: Bearer $API_KEY"
```

Si falta la clave o es incorrecta, se devuelve `401`:

```json theme={null}
{
  "success": false,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid API key",
    "timestamp": "2026-07-09T04:12:00.000Z"
  }
}
```

## Qué endpoints la requieren

| Endpoint | Autenticación |
| - | - |
| `POST /v1/async/task` | Bearer |
| `POST /v1/async/task/batch` | Bearer |
| `GET /v1/async/task/{id}` | Bearer |
| `GET /stats` | Bearer |
| `GET /capacity` | Bearer |
| `GET /health` | Ninguna (sonda de liveness) |
| `GET /ready` | Ninguna (sonda de readiness) |

## Obtener una clave

Las claves se emiten durante el onboarding. Escríbenos desde [querying.ai](https://querying.ai) para solicitar acceso.
