Routescope APIRoutescope API

查询我的消费区间统计

🔑 需要令牌认证(TokenAuth)

聚合返回当前令牌所属用户在时间区间内的总请求次数、总消耗金额与总 Token 数,常用于仪表盘核心数字卡片。

GET
/api/token/self/dashboard/consume-range
curl -X GET "https://webapi.routescope.ai/api/token/self/dashboard/consume-range"
{
  "success": true,
  "message": "",
  "data": {
    "request_count": 18,
    "quota": 0.24,
    "tokens": 4500
  }
}

Authorization

BearerAuth

AuthorizationBearer <token>

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

In: header

Query Parameters

start_timestamp?integer

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

end_timestamp?integer

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

Response Body

application/json

最后更新于