Skip to main content
POST
Read individual entity groups' AI credit usage
An entity whose group has since been deleted 404s for every month, including months when the group still existed, because the entity must have an entity group in the organization right now. Its usage rows aren’t deleted.

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Body

application/json
entities
string[]
required

Entity groups to read usage for, at most 1000 per request. Each entry is an embed entity (the SSO entity value) corresponding to an entity group that exists in the organization right now, even when reading a past month. Each entity must be included only once, as duplicated entries will fail the request.

Required array length: 1 - 1000 elements
period
string

UTC calendar month to read, as YYYY-MM, from 2000-01 to 2099-12. Omit it to read the current billing period. A month after the current one is rejected; a month before AI credit metering began reports 0 for every entity.

Pattern: ^20\d{2}-(0[1-9]|1[0-2])$
Example:

"2026-09"

Response

Each requested entity group's credit usage for the billing period read, in request order.

periodEnd
integer
required

Start of the month after the billing period read, as a Unix ms timestamp (UTC calendar-month boundary, exclusive).

Required range: x >= 0
Example:

1790812800000

periodStart
integer
required

Start of the billing period read, as a Unix ms timestamp (UTC calendar-month boundary).

Required range: x >= 0
Example:

1788220800000

entityGroups
object[]
required