Routescope APIRoutescope API

查询我的日志统计

🔑 需要令牌认证(TokenAuth)

按时间窗口汇总当前令牌所属用户的日志,返回总额度消耗、RPM(每分钟请求数)与 TPM(每分钟 Token 数)。

GET
/api/token/self/log/stat
curl -X GET "https://webapi.routescope.ai/api/token/self/log/stat"
{
  "success": true,
  "message": "",
  "data": {
    "quota": 0.24,
    "rpm": 3,
    "tpm": 4500
  }
}

Authorization

BearerAuth

AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

In: header

Query Parameters

start_timestamp?integer

起始时间(Unix 秒级时间戳)

end_timestamp?integer

截止时间(Unix 秒级时间戳)

token_name?string

按令牌名过滤

model_name?string

按模型名过滤

group?string

按分组过滤

Response Body

application/json

最后更新于