Skip to main content

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 without userId. Carries the org-wide ConsumptionStatus shape under status (same shape the webapp's consumption view uses).
  • kind: "per_user" — when called with userId. Carries users plus the resolved from/to window.

Request

Responses

The request has succeeded.