API 文档
查看账户用量
这把 key 所属账户对照方案用了多少,以及最近的调用和每次的结果或拒绝码。
REST: GET /v1/usage MCP 工具: usage_list 需要 API key
拒绝码
- input_invalid (400) The request does not match the action’s input schema.
- key_missing (401) This action needs an API key (Authorization: Bearer <key>).
- key_invalid (401) The API key is unknown, revoked or expired.
- rate_limited (429) Too many requests from this client; slow down.
- database_unavailable (503) The ledger database cannot be reached right now.
输入(JSON Schema)
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 20
}
},
"required": [],
"$schema": "http://json-schema.org/draft-07/schema#"
}