Per-Stream Stream Sessions Summary
GET/program/api/v2/streams/:id/stream-sessions/summary
warning
This endpoint is available in private cloud only. Use your global host URL if self-hosted.
Aggregate stream_sessions durations for one stream over a required
time window. Durations are clipped to [after, before] so values
sum coherently. Open sessions are clipped using server now().
V1-mode streams return zero summary. 90-day max window (400 on
larger). 404 cross-tenant.
Response always includes cleanupArtifactSessionCount so callers
can judge whether the totals may be inflated by janitor-closed
sessions. Pass excludeCleanupArtifacts=true to exclude those
from the duration aggregates entirely.
Request
Responses
- 200
- 400
- 404
- 500
Per-stream summary
Bad Request (missing window, inverted, or > 90 days)
Stream not found or belongs to different project
Internal Server Error