Durable usage API
GET /api/v1/admin/durable-usage
Section titled “GET /api/v1/admin/durable-usage”GET /api/v1/admin/durable-usage · operation listDurableUsage
Requires durable_usage and analytics:read. Team roles are filtered on the server in the same repeatable-read transaction used for coverage and rows. Fixed page size 50; metadata only. Pending/indeterminate counters and status are null rather than zero. Receipt ID is server-generated; it is not a client idempotency key or financial ledger. The public X-Gateway-Usage-Receipt header is returned only after durable admission is confirmed.
Authentication: adminSession
Parameters
| Name | In | Type | Description |
|---|---|---|---|
tags |
query | string, max length 2048 | Exact JSON object of at most four ASCII slug string pairs combined with AND before authorized aggregation/pagination. Historical values need not exist in current taxonomy. Single query value, at most 2 KiB, duplicate decoded keys rejected. Requires usage_tags; disabled returns 404 and projections omit stored tags. |
end_user |
query | string, min length 1, max length 128 | Exact client-declared end user. Requires end_user_tracking; with the flag off the parameter is rejected. Applied in the shared usage predicate, so reports, comparisons, CSV, valuation and receipts agree. |
from |
query | string (date-time), required | Exact RFC3339 window; 0 < to-from <= 90 days |
to |
query | string (date-time), required | Exact RFC3339 window; 0 < to-from <= 90 days |
principal |
query | string, max length 256 | Exact value, single occurrence; server applies authorized team scope before aggregation/pagination |
model |
query | string, max length 256 | Exact value, single occurrence; server applies authorized team scope before aggregation/pagination |
team |
query | string, max length 256 | Exact value, single occurrence; server applies authorized team scope before aggregation/pagination |
provider |
query | string, max length 256 | Exact value, single occurrence; server applies authorized team scope before aggregation/pagination |
key_id |
query | string, max length 256 | Exact value, single occurrence; server applies authorized team scope before aggregation/pagination |
operation |
query | string, max length 256 | Exact value, single occurrence; server applies authorized team scope before aggregation/pagination |
request_id |
query | string, pattern ^[A-Za-z0-9._:-]{1,128}$ |
|
internal_event_id |
query | string, pattern ^[a-f0-9]{32}$ |
Only the receipt of this internal usage event ID (32 lower-case hex characters) |
state |
query | string, one of "pending", "completed", "indeterminate" |
Only receipts in this state: pending, completed or indeterminate |
offset |
query | integer, default 0, min 0, max 10000 |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Persisted receipt states; private, no-store | application/json: DurableUsageReport |
400 |
Invalid range, exact filter, ID, state or offset | — |
401 |
Console session required | — |
403 |
Forbidden role or team | — |
404 |
durable_usage disabled | — |
503 |
Receipt storage unavailable | — |