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

# 创建令牌

> 通过 API 创建新的访问令牌

## 说明

通过管理员 API Key 创建新的用户令牌，适用于自动化管理场景。

## 请求示例

```bash cURL theme={null}
curl -X POST https://api.qclawrouter.com/v1/token \
  -H "Authorization: Bearer sk-your-admin-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-token",
    "quota": 1000000
  }'
```

## 返回示例

```json theme={null}
{
  "id": 1,
  "name": "my-token",
  "key": "sk-xxxxxxxxxxxx",
  "quota": 1000000,
  "created_time": 1677652288
}
```
