SessionReplay API
SessionReplay endpoints exposed by the Devotel CPaaS API
Base path: /api/v1/session-replay
Endpoint count: 5
List recent session-replay recordings
GET /api/v1/session-replay
Returns the most recent session-replay recordings captured across the tenant’s conversations as lightweight summaries (no event payloads). The inbox ‘Session replays’ panel lists these so an agent can pick one to play back.
Get a session-replay recording for playback
GET /api/v1/session-replay/{conversationId}
Returns the full rrweb event stream stamped on the conversation (metadata.session_replay), or null when no recording exists. The agent’s rrweb-player consumes session_replay.events to replay the customer’s web session.
Get a session replay’s frustration-signal timeline
GET /api/v1/session-replay/frustration/{conversationId}
Returns the chronological frustration-signal timeline for one recorded session — each signal carries its type (rage_click / dead_click / error_click / u_turn), the event timestamp, click coordinates where known, and a short detail. The replay player renders a marker per signal on the scrubber. The full recording is analysed end-to-end, so signals are captured even in long sessions.
List high-friction session replays ranked by frustration
GET /api/v1/session-replay/frustration/sessions
Scans recent session-replay recordings, derives per-session frustration signals (rage clicks, dead clicks, error clicks, and rapid back-navigation u-turns) from the recorded events, and returns the sessions with any friction ordered by frustration score (highest first). The ranked list scores each recording quickly for triage; open a session to analyse the full recording and see its complete signal timeline.
Delete a session-replay recording
DELETE /api/v1/session-replay/{conversationId}
Removes the session-replay recording from the conversation (metadata.session_replay), leaving the conversation + messages intact. Idempotent. Use for privacy / right-to-erasure requests.