get session analytics
Changed onReturns per-turn latency analytics for a session — where time was spent in the transcription → LLM → TTS → first-audio path for each conversational turn, plus session-level summary metrics. Analytics become available once the session has ended and the engine has delivered its session report; until then this endpoint returns 404. Analytics exist only for sessions where Anam runs the conversational pipeline (turnkey, custom LLM and ElevenLabs agent sessions) — LiveKit and audio-passthrough sessions never produce them. Message text is omitted unless includeMessages=true is passed and transcripts were enabled for the session. Anam-internal admin API keys may fetch analytics for sessions of any organization.
Request
- Base URLhttps://api.anam.ai
- URLhttps://api.anam.ai/v1/sessions/{id}/analytics
- AuthHTTP bearer
Path parameters
Session ID
Query parameters
When true, include the user/assistant message text on each turn. Only honoured when transcripts were enabled for the session and the session is not zero-data-retention; timing metrics are always returned.
Response
Successfully retrieved session analytics
Changes
- info
added the non-success response with the status
- info
- info
endpoint added
- info