按变化游标查询调用明细
接口参考来自当前平台公开协议。具体模型的模式和规格请在模型详情中确认。
GET
/v1/billing/calls身份认证
bearerAuth 认证方式Bearer <token>
传入位置: header
查询参数
cursor?string
上一页返回的 nextCursor;与 since 同时提供时以 cursor 为准。
长度
length <= 1024since?string
按 updatedAt 的下界(含),RFC 3339。
格式
date-timelimit?integer
每页条数,1–200,默认 100。
范围
1 <= value <= 200默认值
100user?string
按调用时 user 标签精确筛选。
长度
length <= 128apiKeyId?string
按调用所用 Account API Key 标识精确筛选(例如门户专用 Key);只在主账号自己的调用范围内生效。
匹配规则
^[A-Za-z0-9_-]+$长度
length <= 128apiKeyScope?"portal_instance"
portal_instance:只返回本门户实例历次门户专用 Key(用途 org_portal)产生的调用,含主账号变更前计在前任主账号名下的调用;仅门户专用 Key 可用,否则 403 portal_key_required。游标绑定门户实例,Key 轮换后仍有效。省略时为调用方 Key 所属工作空间的全部调用。
可选值
- "portal_instance"
请求头参数
X-Client-Request-Id?string
可选客户端关联值,只能包含可见 ASCII,最多 512 字节;不能替代服务端 requestId。
长度
length <= 512响应正文
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
{ "data": [ { "amountMilliPoints": 0, "apiKeyId": "string", "billingAccount": { "current": true, "ref": "string" }, "callId": "string", "createdAt": "2019-08-24T14:15:22Z", "final": true, "model": "string", "requestId": "string", "serviceKind": "string", "status": "pending", "updatedAt": "2019-08-24T14:15:22Z", "usage": [ { "components": [ { "code": "string", "meter": "string", "quantity": 0, "unit": "string" } ], "meter": "string", "quantity": 0, "spec": "string", "unit": "string" } ], "user": "string" } ], "hasMore": true, "nextCursor": "string", "object": "list"}