Skip to main content
POST
/
v1
/
token
创建令牌
curl --request POST \
  --url https://api.qclawrouter.com/v1/token

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 Key 创建新的用户令牌,适用于自动化管理场景。

请求示例

cURL
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
  }'

返回示例

{
  "id": 1,
  "name": "my-token",
  "key": "sk-xxxxxxxxxxxx",
  "quota": 1000000,
  "created_time": 1677652288
}