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 the current billing period. Each included entity must have an entity group in the organization. Unknown, invalid, and duplicate entity values will fail the request.
Returns each entity group’s credits used, in request order, plus the billing-period bounds. Entity groups with no current usage 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 in the organization. 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 current billing period, in request order.
End of the current billing period as a Unix ms timestamp (UTC calendar-month boundary).
x >= 0Start of the current billing period as a Unix ms timestamp (UTC calendar-month boundary).
x >= 0
