Skip to main content
GET
Export a usage report as CSV

Authorizations

Authorization
string
header
required

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

Query Parameters

report
enum<string>
required

Which usage report a CSV export serves.

Available options:
balance_timeseries,
spend_timeseries,
by_table,
by_provider,
by_agent,
table_timeseries,
table_by_column,
table_by_run,
ledger
start_time
string<date-time>
required

Range start (ISO 8601)

end_time
string<date-time>
required

Range end (ISO 8601)

interval
enum<string>
default:day
Available options:
hour,
day
timezone
string
default:UTC

IANA timezone for buckets

table_id
string<uuid> | null
entry_kind
enum<string> | null

The kind of a credit ledger entry.

Available options:
grant,
expiry,
pack_purchase,
charge,
refund,
referral,
adjustment

Response

The report as a CSV file.