Endpoints for querying credits usage events, usage summaries, organization resource packages, and seat-month consumption.
Query parameters:
Request example:
Response example:
This is a legacy usage endpoint: the top-level field is
Query parameters:
Request example:
Response example:
Query parameters are the same as the member usage events endpoint (
Response example:
Query parameters:
Request example:
Response example:
Response example:
Request example:
Response example:
List member usage events
| Parameter | Type | Description |
|---|---|---|
startDate | string | Optional; start time in RFC 3339 or Unix milliseconds |
endDate | string | Optional; end time in RFC 3339 or Unix milliseconds. When both dates are provided, the range must not exceed 7 days |
sources | string | Filter by source, comma-separated |
operations | string | Filter by operation type, comma-separated |
modelTiers | string | Filter by model tier, comma-separated |
maxResults | integer | Items per page; default 20, max 100 |
nextToken | string | Pagination cursor |
usages, and it does not return eventId or durationMs. Those fields belong to the V2 events endpoints under /usage/.
Get usage summary
| Parameter | Type | Description |
|---|---|---|
startDate | string | Start date (ISO 8601) |
endDate | string | End date (ISO 8601); range must not exceed 7 days |
groupBy | string | Group by: source or operation |
List organization usage events
startDate, endDate, sources, operations, modelTiers, maxResults, nextToken). Returns usage events across all members in the organization.
Request example:
List organization resource packages
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by package status |
orderBy | string | Sort field |
order | string | Sort direction: asc or desc |
maxResults | integer | Items per page; default 20, max 100 |
nextToken | string | Pagination cursor |
Seat-month balance batches
Only available for organizations purchased through third-party channels.Request example:
Seat-month consumption by period
Only available for organizations purchased through third-party channels.Query parameters:
| Parameter | Type | Description |
|---|---|---|
periodStart | string | Required; period range start time in RFC 3339 format |
periodEnd | string | Required; period range end time in RFC 3339 format; must be later than periodStart |
memberId | string | Optional; filter by organization member ID |
userId | string | Optional; filter by user ID |
pageSize | integer | Optional; page size, default 100 and max 500 |
pageToken | string | Optional; pass the nextToken from the previous response |