Routescope APIRoutescope API
RouteScope 自助

查询我的日期聚合数据

🔑 需要令牌认证(TokenAuth)

按天 × 模型维度聚合返回当前令牌所属用户在指定时间区间内的消耗,常用于绘制趋势折线图与模型用量分布图。

GET
/api/token/self/data
curl -X GET "https://webapi.routescope.ai/api/token/self/data"
{
  "success": true,
  "message": "",
  "data": [
    {
      "id": 1,
      "user_id": 123,
      "username": "alice",
      "model_name": "gpt-4o",
      "created_at": 1710000000,
      "token_used": 3800,
      "cache_token_used": 700,
      "count": 12,
      "quota": 0.24
    }
  ]
}

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

最后更新于