Skip to main content
GET
Space usage

Authorizations

Authorization
string
header
required

nia_sk_...

Query Parameters

since
string<date-time>
required
until
string<date-time>
required
granularity
enum<string>
default:hour
Available options:
hour,
day
metric
string[] | null

Only these metrics, such as session_billable, context_read, history_call or event_ingested. Up to 20.

Maximum array length: 20
source_id
string<uuid> | null
group_by
string | null

source splits every metric by source.

Allowed value: "source"

Response

One item per metric and period, and per source with group_by=source.

granularity
enum<string>
required
Available options:
hour,
day
items
UsageItem · object[]
required
since
string<date-time>
required
until
string<date-time>
required
group_by
string | null
Allowed value: "source"
source_id
string | null