Skip to main content
GET
List an organization's usage history

Authorizations

Authorization
string
header
required

Session token from signing in, sent as Authorization: Bearer <token>.

Path Parameters

org_id
string
required

The organization id (a UUID).

Query Parameters

limit
integer<int64>

Page size, 1 to 1000. Defaults to 100.

offset
integer<int64>

Number of entries to skip. Defaults to 0.

start_date
string

Only entries on or after this day (YYYY-MM-DD, start of day UTC) or instant (ISO 8601).

end_date
string

Only entries on or before this day (YYYY-MM-DD, end of day UTC) or instant (ISO 8601).

start_time
string

Only entries at or after this instant (ISO 8601). Takes precedence over start_date.

end_time
string

Only entries before this instant (ISO 8601). Takes precedence over end_date.

workspace_id
string<uuid>

Only entries of this workspace.

api_key_id
string<uuid>

Only entries of this API key.

credit_type
string

Only entries funded by this credit type, for example grant or payment.

Response

A page of usage history.

Usage history response

data
object[]
required
limit
integer<int64>
required
offset
integer<int64>
required
total
integer
required

Number of matching records. Without filters this is the organization's recorded request count (total_requests in the balance), which can exceed the rows still stored, so a final page may come back short or empty.

Required range: x >= 0