Me
Get the caller's credit balance and usage
Balance split by bucket (cycle allowance, purchased on-demand, personal), the per-cycle allowance and on-demand unit price, and ledger totals over a window.
The window defaults to the current calendar month to date (UTC). Figures are for the caller's own membership in their active organization — the same organization the API meters requests against.
Authorization
Query parameters
startDatestringUsage window start (YYYY-MM-DD, inclusive)
endDatestringUsage window end (YYYY-MM-DD, inclusive)
Responses
200objectCredit balance and usageShow attributesHide attributes
allowanceobjectrequiredShow child attributesHide child attributes
perCyclenumberrequiredCredits granted to each member per billing cycle
unitPriceCentsnumberrequiredPrice of one on-demand credit, in cents
balanceobjectrequiredShow child attributesHide child attributes
cyclenumberrequiredCredits from the current subscription cycle allowance
onDemandnumberrequiredPurchased credits that do not expire with the cycle
personalnumberrequiredThe user's personal (non-workspace) credit balance
totalnumberrequiredorganizationIdstringrequiredusageobjectrequiredShow child attributesHide child attributes
grantednumberrequiredpurchasednumberrequiredspentnumberrequiredspentByCategoryobjectrequiredShow child attributesHide child attributes
ai_agentnumberrequiredai_chatnumberrequiredapinumberrequiredenrichmentnumberrequiredwindowobjectrequiredShow child attributesHide child attributes
endDatestringrequiredISO-8601, inclusive
startDatestringrequiredISO-8601, inclusive
400objectValidation error401objectUnauthorized403objectForbidden (authenticated, but missing required context — e.g. no active organization)404objectNot found413objectResponse payload too large — detail endpoint capped to fit Lambda response limits502objectAccount service unavailable503objectSearch timed out or the cluster is overloaded — retry after `Retry-After` seconds.