请求头
| 请求头 | 必填 | 说明 |
|---|---|---|
Authorization | ✓ | Bearer YOUR_ACCESS_TOKEN,账号访问令牌(控制台登录态,非 sk- API Key) |
Content-Type | ✓ | application/json |
接口:POST /api/token/batch 一次删除多个 API Key(DeleteTokenBatch,批量删除,非创建)。
请求体
| 字段 | 必填 | 类型 | 说明 |
|---|---|---|---|
ids | ✓ | integer\[\] | 要删除的 Token ID 列表,ID 来自 GET /api/token/ 的 data.items[].id |
curl -X POST https://top.qingyuntop.ai/dashboard//api/token/batch \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"ids": [10623, 10624]}'Response
{ "success": true, "message": "", "data": 2 }