About this document
Query Credits usage events and summaries by member or organization, and query Shared Add-on Credits, seat·month balance batch details and periodic seat·month consumption for an organization (seat·month batches and consumption only apply to organizations purchased via third-party channels). Complete Get API Key first, then read Conventions.Requirements
- Valid API key tied to the organization.
API list
1. List usage events
GET /v1/organizations/{organization_id}/members/{member_id}/usage-events
Paginated retrieval of aggregated Credits usage records for a specified member.
Path parameters
Query parameters
Success response (200 OK)
With usage records and more pages:Some records may not returnNo usage records / last page:userEmailormodelTier; treat them as optional fields during integration.
When nextToken is empty or absent, it indicates the last page.
Response fields
2. Get usage summary
GET /v1/organizations/{organization_id}/members/{member_id}/usage-summary
Summarize a member’s Credits consumption over a given time range by the specified dimension. The time range must not exceed 7 days.
Path parameters
Query parameters
Success response (200 OK)
Grouped by source (**groupBy=source**):
**groupBy=operation**):
Response fields
Error responses
Missing required parameter (400)3. List organization usage events
GET /v1/organizations/{organization_id}/usage-events
Paginated retrieval of aggregated token usage records for all members in the specified organization. The response structure is identical to the member usage events endpoint.
Path parameters
Query parameters
Success response (200 OK)
Some records may not returnuserEmailormodelTier; treat them as optional fields during integration. The endpoint does not filter out negative Credits records by default; refunds and reversals may also appear.
Response fields
Response fields are identical to “1. List usage events”.4. List organization Shared Add-on Credits packages
GET /v1/organizations/{organization_id}/resource-packages
Returns all Shared Add-on Credits details for an organization with pagination. The response contains only per-batch information and does not include summaries (aggregate limitValue / usedValue / remainingValue on the client side if needed).
Path parameters
Query parameters
Success response (200 OK)
With Shared Add-on Credits records and more pages:
Some packages may not return activatedAt (e.g., batches not yet activated); treat it as an optional field during integration.
No Shared Add-on Credits / last page:
When nextToken is empty or absent, it indicates the last page.
Response fields
Error responses
Invalid status parameter (400)Status reference
Shared Add-on Credits status machine:
Because
expired is set by an hourly async job, there may be up to a 1-hour window between the actual expiration time and the status change. During this window, status is still active but expiresAt < now. For precise “truly available” checks, combine status and expiresAt on the client side:
5. List organization seat·month balance batches
This API only applies to organizations purchased via third-party channels (e.g., marketplace redemption codes).
GET /v1/organizations/{organization_id}/seat-month-batches
Paginated retrieval of seat·month balance batch details for an organization. The response contains only per-batch information and does not return an aggregate total.
Seat·month balance differs from the remainingSeats field in member statistics. remainingSeats only applies to organizations purchased via non-third-party channels and indicates remaining available seats within purchased seats; seat·month balance indicates how many consumable seat·month batches the organization has left. An organization may top up seat·month balance multiple times, and each batch has its own remaining quantity and expiration time.
Path parameters
Query parameters
Success response (200 OK)
With batches and more pages:Some batches may not returnNo batches / last page:redemptionCodeId,sourceChannel,thirdPartyInstanceId, orproductCode; treat them as optional fields during integration.
WhennextTokenis absent, it indicates the last page. When paginating, pass thenextTokenfrom the response aspageTokenin the next request.
Response fields
How to calculate current available seat·month balance
The API does not return a total balance directly. Filter batches with the following conditions, then sumremainingSeatMonths:
Current available seat·month total balance is
90.0.
Error responses
Invalid status parameter (400)Status reference
Because the expired status is refreshed asynchronously by a background task, there may be a delay between the actual expiration time and the status transition. For precise “currently available” checks, evaluate
status, effectiveAt, expiresAt, and remainingSeatMonths together.
6. Query periodic seat·month consumption
This API only applies to organizations purchased via third-party channels (e.g., marketplace redemption codes). It returns the actual net consumption for marketplace reconciliation/reporting, not all internal seat·month transactions.
GET /v1/organizations/{organization_id}/seat-month-usages
Paginated retrieval of member seat·month consumption for a specified period range at the organization level. The response is aggregated by member and billing period; it does not return seat·month batch details.
Calculation formula
Historical boundary: The API launch time is 2026-06-24T16:00:00Z. Data before this time may lack completeness due to missing period information; please rely on periods after launch for accurate calculations.
Path parameters
Query parameters
Results only include complete billing periods whereperiodStart >= request periodStartandperiodEnd <= request periodEnd. Use actual billing period boundaries for queries.
Success response (200 OK)
With consumption records and more pages:After a full refund,No consumption records / last page:netSeatMonthsmay be0. For example, if a member was assigned a seat but never used Credits, and was later removed, the seat·months are returned to the organization and net consumption for that period is 0.
WhennextTokenis absent, it indicates the last page. Pass thenextTokenfrom the response aspageTokenin the next request.
Response fields
Error responses
Missing periodStart parameter (400)Caliber notes
Marketplace reporting caliber This API returns net consumption for marketplace reconciliation/reporting, not all internal seat·month transactions. Internal seat·month records that do not require reporting (e.g., test or gifted quotas) will not appear in the response. Refund deduction caliber If a member is removed during the current period and has not used any Credits in that period, the system returns the corresponding seat·months to the organization balance. Refunds meeting the following conditions are deducted from the member’s consumption for that period:
Sorting & pagination
Results are sorted by
periodStart descending (newer periods first), then memberId ascending, then userId ascending. Use nextToken from the response for pagination; absence of nextToken means no more pages.
Usage examples
List member usage events
Filter by date range
List organization usage events
Filter by source and operation
Summarize usage by source
Summarize usage by operation
List organization Shared Add-on Credits
Paginate Shared Add-on Credits
nextTokenmay contain URL-reserved characters; URL-encode it when passing as a query parameter (e.g.,=→%3D).
List organization seat·month balance batches
List only active seat·month balance batches
Paginate seat·month batches
pageTokenis from thenextTokenof the previous page response.
Query periodic seat·month consumption
Query seat·month consumption by member
Paginate seat·month consumption
pageTokenis from thenextTokenof the previous page response.
Error codes
Error response shape: see Error responses in Conventions.