Skip to main content
GET
Get organization usage broken down by model.

Authorizations

Authorization
string
header
required

JWT access token for user authentication (Authorization: Bearer <jwt_token>). Create via POST /users/me/access_tokens.

Path Parameters

org_id
string
required

Organization ID

Query Parameters

period
string

Rolling window: day (last 24h), week (last 7d), or month (last 30d); or custom for the start/end range. Default: month. Setting start or end selects the custom range whatever period says

start
string

Custom range start (ISO 8601). Defaults to end minus 30 days

end
string

Custom range end, exclusive (ISO 8601). Defaults to now

Response

Per-model usage breakdown

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
required
end_date
string | null

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