Get usage
Aggregate the org’s MONTHLY UsageMetrics rows for the current calendar month, plus DAILY rows if requested, plus an inline Qdrant storage snapshot.
Computed values:
operations.{writes,reads}.unitsmirrors the DDBwriteUsage/readUsagecolumns.operations.{writes,reads}.memories_{created,returned}mirrors the per-rowmemories_countattribute (added in PR 4).operations.{writes,reads}.requestsmirrors the per-rowrequestsattribute (added in PR 4).operations.total_unitsis the running sanity-check againstORG#SUB.periodUsageUnits.
Documentation Index
Fetch the complete documentation index at: https://docs.mem.xtrace.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Long-lived org API key. Alternative: Authorization: Bearer <key>.
Required alongside the API key (no key→org reverse index).
Headers
Query Parameters
Include the per-day daily[] array (one entry per calendar day in the period). Off by default to keep the response cheap; the dashboard chart opts in.
Include the per-API-key breakdown joined to APIKEY#{hash} for name / first_n. Off by default — extra DDB scans.
Response
Successful Response
Top-level shape for GET /v1/usage.
When this snapshot was computed.
Currently-active per-type row counts from Qdrant.
Cached harder than operations (count(filter) is expensive);
as_of reflects the mint time of the cached snapshot and may
lag the response-level as_of.
"usage"Canonical tier value from ORG#SUB; None if unset.
Period-totals operations envelope.
None when ?daily=false (default); populated when ?daily=true.
None when ?by_api_key=false (default); populated when ?by_api_key=true.