Skip to main content
GET
Retrieve usage for an entity
Use an organization API key (All teams). An existing legacy team key can read the team, user, and playbook scopes for its own team only. See Export usage and spend for examples, pagination, and error handling.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your Writer API key. User keys can't read consumption data.

Path Parameters

organizationId
integer<int64>
required

ID of the organization the API key belongs to.

scope
enum<string>
required

Dimension to report on. The scope must be enabled in the Consumption view for your organization.

Available options:
user,
team,
playbook,
billing_group
scopeId
string
required

ID of one entity in the scope. User, team, and billing group IDs are integers. Playbook IDs are strings.

Query Parameters

month
string
required

Calendar month to read, in UTC, in YYYY-MM format.

Pattern: ^[0-9]{4}-[0-9]{2}$
Example:

"2026-10"

team_id
integer<int64>

ID of one team. Limits the user and playbook scopes to usage in that team. Any other scope returns 400. A legacy team API key can pass only its own team's ID.

Required range: x >= 1

Response

A breakdown page with one row.

scope
enum<string>
required

The scope from the path.

Available options:
user,
team,
playbook,
billing_group
currency
string
required

Currency of cost_in_cents.

Example:

"USD"

data
object[]
required
pagination
object
required