Skip to main content
GET
Get Session Daily Consumption
This organization-level endpoint is available on all plans, including Teams and self-serve. Callers need the ViewOrgConsumption permission for the target organization. The account-level enterprise consumption endpoint requires an Enterprise plan.

Product-Level Breakdown

Each date entry in the response includes an acus_by_product object that breaks down the total ACU consumption into its product components: devin, automation, cascade, terminal, and review (Devin Review). This allows you to see how consumption is distributed across products for each day. When product-level data is not available for devin, cascade, or terminal, its value defaults to 0.0. automation and review are null when their product-specific consumption data is not available.
  • devin: sessions started by a person or a service user, including code-scan and on-call sessions.
  • automation: sessions and code steps run by automations. Before this field existed, that usage was reported under devin.

Permissions

Requires a service user or personal access token with the ViewOrgConsumption permission at the organization level.

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

session_id
string
required

Session ID (prefix: devin-). Alias for devin_id used in consumption endpoints.

Example:

"devin-abc123def456"

org_id
string
required

Organization ID (prefix: org-)

Example:

"org-abc123def456"

Query Parameters

time_before
integer | null
time_after
integer | null

Response

Successful Response

consumption_by_date
ConsumptionByDateResponse · object[]
required
total_acus
number
required