Skip to main content
GET
Retrieve daily usage
Use an organization API key. Team keys and user keys return 403 Forbidden. See Export usage and spend for examples 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.

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"

Response

Daily series for the organization.

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.