UsageService
使用日志
查询当前用户的 API 调用日志。默认最近 24 小时,显式时间范围最多 90 天;使用 createdAt/id 不透明游标分页,raw 日志不执行 COUNT(*),响应 total 固定为 -1。
get/v1/console/usage/logs
Query parameters
limitinteger
每页条数,默认 20,最大 100。
cursorstring
不透明 keyset 游标;使用上一次响应的 nextCursor 获取下一页。
searchstring
请求 ID(UUID)精确过滤;非法 UUID 视为无匹配。时间范围仍受默认 24 小时/最大 90 天约束。
status'all' | 'success' | 'error'
状态过滤:all(或不传)/success/error。
modelIdstring int64
模型 ID 精确过滤。
channelIdstring int64
渠道 ID 精确过滤。
startTimestring date-time
起始时间(含),RFC3339;省略时默认最近 24 小时。
endTimestring date-time
结束时间(不含),RFC3339;时间窗口为 [startTime, endTime)。
apiKeyIdstring int64
API Key ID 精确过滤。
modelNamestring
模型名称精确过滤;名称不存在时直接返回空列表。
apiKeyNamestring
当前用户 API Key 名称精确过滤;名称不存在时直接返回空列表。
Response
游标分页结果;通过 hasMore/nextCursor 翻页,total 固定为 -1。
Changes
No recorded changes to this endpoint across all 1 revision of this API.