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 elementsResponse
Each requested entity group's credit usage for the billing period read, in request order.

