个人设置->安全设置->系统访问令牌个人设置->用户名旁边ID(数字)Authorization: Bearer ********************New-Api-User: ********************curl --location --request GET '/api/token?p=1&size=20' \
--header 'Authorization: Bearer <token>' \
--header 'New-Api-User: <api-key>' \
--header 'Content-Type: application/json'{
"data": {
"page": 1,
"page_size": 10,
"total": 8,
"items": [
{
"id": 5171,
"user_id": 1,
"key": "你的令牌key",
"status": 1,
"name": "你的令牌名称2",
"created_time": 1750052217,
"accessed_time": 1750052653,
"expired_time": -1,
"remain_quota": 4999371,
"unlimited_quota": false,
"model_limits_enabled": false,
"model_limits": "",
"allow_ips": "",
"used_quota": 629,
"group": "guiji",
"cross_group_retry": false,
"DeletedAt": null
},
"...等n个令牌...",
{
"id": 104,
"user_id": 1,
"key": "你的令牌key",
"status": 1,
"name": "你的令牌名称",
"created_time": 1743155032,
"accessed_time": 1765864909,
"expired_time": -1,
"remain_quota": -160705028,
"unlimited_quota": true,
"model_limits_enabled": false,
"model_limits": "",
"allow_ips": "",
"used_quota": 160705028,
"group": "auto",
"cross_group_retry": false,
"DeletedAt": null
}
]
},
"message": "",
"success": true
}