getConsumption
GET/api/admin/users/consumption
Read consumption (credits + tool calls) for the calling org.
Returns AdminGetConsumptionResponse, a discriminated union with a
kind field:
kind: "org_wide"— when called withoutuserId. Carries the org-wideConsumptionStatusshape understatus(same shape the webapp's consumption view uses).kind: "per_user"— when called withuserId. Carriesusersplus the resolvedfrom/towindow.
Request
Responses
- 200
The request has succeeded.