Skip to main content
GET
Get an organization's usage by model

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

period
enum<string>

day (last 24 hours), week (last 7 days), month (last 30 days), or custom for the start/end range. Defaults to month. Period selector for the by-model usage breakdown.

Available options:
day,
week,
month,
custom
start
string

Custom range start (ISO 8601). Setting start or end selects the custom range whatever period says.

end
string

Custom range end, exclusive (ISO 8601). Defaults to now. The range may not exceed 366 days.

Response

Usage per model.

Per-model usage breakdown response

data
object[]
required
period
string
required

day, week or month for a rolling window; custom for a start/end range.

start_date
string<date-time>
required
end_date
string<date-time> | null

Exclusive end of a custom range. Absent for rolling windows, which end now.