Skip to main content
GET
Retrieve daily usage for a scope
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

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

Daily series for the scope.

currency
string
required

Currency of cost_in_cents.

Example:

"USD"

generated_at
string<date-time>
required

ISO 8601 time the cost series was calculated. Token counts are read at request time.

days
object[]
required

One row for every day in the month, including days with no usage.