Skip to main content
This documentation is for the federal deployments of Devin. Back to Devin Docs
Query ACU consumption with a typed request on the Analytics endpoint. The response can include a team-wide total, totals for up to 100 selected groups, and paginated per-user rows for either the whole team or one group.
Requires the Analytics Read permission and a team tier with analytics API access. See the API overview for authentication, pagination, and error details, and ACU Limits for how consumption relates to enforcement.
A request may contain either the typed acu_consumption_query described here or the legacy custom query_requests, but not both.

Request

string
required
Your service key with the Analytics Read permission.
string
Start of a historical window in RFC 3339 format (for example 2025-01-01T00:00:00Z). Required for historical queries; must be omitted for current_cycle queries.
string
End of a historical window in RFC 3339 format. The window is inclusive and may span at most 90 days.
object
required
The typed ACU consumption query.

Response

object
Each user row contains:

Behavior

  • Group attribution uses current membership. Group totals and group user rows reflect who is in the group now, not who was in it during the period. Users in multiple requested groups are counted in each.
  • Team rows retain former users. Team-scoped user rows include users who have since left the team or could not be resolved; their current_member flag is false.
  • Only users with ACU usage appear. Users with no ACU consumption in the period are omitted from user rows.
  • Historical vs. current cycle. Historical windows cover up to 90 inclusive days of recorded usage. current_cycle returns near-real-time usage for the active billing cycle; if the team has no active cycle bounds, the metadata period fields reflect that.
  • Consistency. Totals and the user-row page in a single response are computed from one consistent snapshot.

Examples

Team total and per-user rows for the current cycle

Historical per-group breakdown