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

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de consulta

currency
enum<string>

Filter by consumable currency

Opções disponíveis:
USD,
DIEM,
BUNDLED_CREDITS
Exemplo:

"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_-]+$
Exemplo:

"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
Exemplo:

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

pageSize
integer
padrão:1000

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

Intervalo obrigatório: 10 <= x <= 1000
Exemplo:

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
Exemplo:

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

Resposta

Successful response

The response schema for the billing usage history endpoint

data
object[]
obrigatório

Usage entries in ascending timestamp order

Maximum array length: 1000
nextCursor
string | null
obrigatório

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_-]+$