Skip to main content
GET
Get Service User Daily Consumption
The consumption API is available only to accounts on the Enterprise plan. Teams and self-serve organizations receive a 403 response; there is no per-account toggle for support to enable.

Permissions

Requires a service user with the ViewAccountConsumption permission at the enterprise level.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

service_user_id
string
required

Service user ID (prefix: service-user-)

Example:

"service-user-abc123def456"

Query Parameters

time_before
integer | null
time_after
integer | null

Response

Successful Response

consumption_by_date
ConsumptionByDateResponse · object[]
required
total_acus
number
required