Skip to main content
GET
Get account member AI usage analytics

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

user_id
string<uuid>
required

Current member in the authorized account. This reads the project ledger, not the member personal account or quota rollups. API keys and runtime service credentials are refused.

Query Parameters

preset
enum<string>
default:30d

Whole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults.

Available options:
7d,
30d,
90d
from
string<date-time>

Inclusive start. Supply both from and to; these bounds take precedence over preset.

to
string<date-time>

Exclusive end, no later than the end of today in timezone.

timezone
string
default:UTC
granularity
enum<string>
default:day

UTC hours, or local calendar days, Monday-based weeks and months.

Available options:
hour,
day,
week,
month
group_by
enum<string>[]

Grouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list.

Maximum array length: 4
Available options:
project,
model,
api_key,
member
compare
enum<string>

Compare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise.

Available options:
previous_period

Response

Recorded member AI usage billed to the authorized account, with bounded time controls and optional grouping/comparison.

summary
object
required
timeframe
object
required
series
object[]
required
projects
object[]
required
models
object[]
required
scope
object
required
attribution
object
required
serving
object[]

The same spend cut by the deployment that served it. Ordered by spend descending, then by request count descending, then by host, then by tier; the row whose host and tier are both null is always last, because it is the absence of a record rather than a deployment. Additive: it neither replaces nor re-slices any other field. Omitted where the serving breakdown is not enabled; models is unchanged by it.

group_by
enum<string>[]
Available options:
project,
model,
api_key,
member