Skip to main content
GET
/api/v1/billing/usage-history

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

currency
enum<string>

Filter by consumable currency

可用选项:
USD,
DIEM,
BUNDLED_CREDITS
示例:

"USD"

cursor
string

Opaque continuation token from a previous response's nextCursor. The cursor carries the filters of the walk it continues, so no filter parameters may be sent alongside it.

Maximum string length: 512
Pattern: ^[A-Za-z0-9_-]+$
示例:

"AZq3fK9tXhIVDm2j4vN8cQwYt1sB6uEoLxRgPzKaJdHfM5nC7yW0K3w"

endTimestamp
string<date-time>

Exclusive upper bound on entry timestamps (ISO 8601 UTC, "Z" suffix). Must be later than startTimestamp; consecutive windows sharing a boundary walk the history without gaps or overlaps. Carried forward by the cursor.

Maximum string length: 40
示例:

"2026-07-01T00:00:00.000Z"

pageSize
integer
默认值:1000

Number of entries per page. Carried forward by the cursor.

必填范围: 10 <= x <= 1000
示例:

1000

startTimestamp
string<date-time>

Inclusive lower bound on entry timestamps (ISO 8601 UTC, "Z" suffix). First page only: a continuation resumes from the cursor position instead.

Maximum string length: 40
示例:

"2026-06-01T00:00:00.000Z"

响应

Successful response

The response schema for the billing usage history endpoint

data
object[]
必填

Usage entries in ascending timestamp order

Maximum array length: 1000
nextCursor
string | null
必填

Continuation token for the next page, to be sent as the cursor query parameter. null means this is the last page.

Maximum string length: 512
Pattern: ^[A-Za-z0-9_-]+$