Session-level usage summary (Enterprise)
Enterprise — session-level usage reporting (#2759). The Community build mounts the same route but returns 501 Not Implemented.
Buckets audit logs into per-session aggregates for the date window: a bucket is per-session when session_id is present on its rows, otherwise rows without a session id fall back to a per-user-day bucket (the day field is set instead of session_id). Buckets are capped at bucket_limit (most-recent activity first); truncated is true when the window held more buckets than the cap — narrow the window or raise limit. Drill into a bucket's raw events via POST /api/v1/audit/search with its session_id (#2857).
The window start is clamped to the tenant's tier retention floor, like /api/v1/audit/search and /api/v1/audit/export.
avg_latency_ms is nullable on the bucket and on every entry of its tools array (#3433), paired with a latency_sample_count. null means no row in that bucket carried a measurement, which is a different fact from a measured zero and used to be coalesced onto it. A strict deserializer binding it to a non-optional float will raise; see the SessionSummaryBucket schema.
Request
- Base URLhttps://orchestrator.getaxonflow.com
- Authnone declared. Required headers: X-Tenant-ID
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Window start, calendar day (YYYY-MM-DD)
Window end, calendar day (YYYY-MM-DD), inclusive
Case-insensitive partial (ILIKE substring) filter
Caps the number of returned buckets. Default 200. Values above the server max (1000) are clamped; the effective bound is echoed back as bucket_limit. A non-positive or non-integer value is a 400.
Headers
Tenant identifier scoping the request. The AxonFlow Agent gateway sets this header after authentication; the orchestrator fails closed when it is absent (401 on audit/decision endpoints, 400 on others — see each operation). Clients cannot widen their scope through it: handlers force the tenant filter from this header, never from the request body.
Response
Session summary buckets
Changes
No recorded changes to this operation across all 1 revision of this API.