> ## 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.

# 認証

> すべてのクライアントリクエストにBearerトークンが必要です。

すべてのリクエストで、APIキーをBearerトークンとして送信してください。

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

キーがない、または誤っている場合は `401` を返します。

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

## 認証が必要なエンドポイント

| エンドポイント | 認証 |
| - | - |
| `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` | 不要(liveness プローブ) |
| `GET /ready` | 不要(readiness プローブ) |

## キーの取得

キーはオンボーディング時に発行します。アクセスをご希望の場合は [querying.ai](https://querying.ai) からお問い合わせください。
