Get member usage

http
GET /projects/{project_reference}/members/usage

Get member usage.

Parameters

NameInRequiredDescription
project_referencepathYes
presetqueryWhole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults.
fromqueryInclusive start. Supply both from and to; these bounds take precedence over preset.
toqueryExclusive end, no later than the end of today in timezone.
timezonequery
granularityqueryUTC hours, or local calendar days, Monday-based weeks and months.
group_byqueryGrouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list.
comparequeryCompare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise.

Responses

StatusDescription
200AI spending by project member; webhook and channel-bot usage without a person appears in an Automations row. Owners and administrators read all members; other members read only their own. serving groups spending by deployment host and sovereignty tier; null means the deployment was not recorded, not a location. Read from the AI usage ledger; usd is the customer charge at the credit rate and never provider cost.
400Bad request
401Unauthorized
403Forbidden
404Not found
500Server error