Read individual entity groups' AI credit usage
Organization Admin permissions are required to use this endpoint.
List individual embed entity groups’ (up to 1,000 unique entities per request) AI credit usage for one billing period: the current UTC calendar month by default, or an earlier month named by the period field. Each included entity must have an entity group in the organization at the time of the request. Unknown, invalid, and duplicate entity values will fail the request.
Returns each entity group’s credits used, in request order, plus the bounds of the period read. Entity groups with no usage in that period will report 0.
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Body
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.
1 - 1000 elementsUTC 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.
^20\d{2}-(0[1-9]|1[0-2])$"2026-09"
Response
Each requested entity group's credit usage for the billing period read, in request order.
Start of the month after the billing period read, as a Unix ms timestamp (UTC calendar-month boundary, exclusive).
x >= 01790812800000
Start of the billing period read, as a Unix ms timestamp (UTC calendar-month boundary).
x >= 01788220800000

