跳转到主要内容
GET
GET /admin/api/usage/records

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

查询参数

apiKeyId
string | null
credentialId
string | null

Records whose structured upstream usage matches this credential.

fromMs
integer<int64> | null
model
string | null
operation
string | null
page
integer<uint64> | null

1-based. Zero and absent both mean the first page.

必填范围: x >= 0
pageSize
integer<uint64> | null

Clamped to 1..=500; absent means 50.

必填范围: x >= 0
providerId
string | null

Records whose structured upstream usage matches this provider.

requestId
string | null
toMs
integer<int64> | null
userId
string | null

响应

Success

One exact database page; provider and credential filters are SQL predicates.

items
object[]
必填
limit
integer<uint64>
必填
必填范围: x >= 0
offset
integer<uint64>
必填
必填范围: x >= 0
total
integer<uint64>
必填
必填范围: x >= 0
truncated
boolean
必填