sessions

Submit Session Network Stats

Accept a client-side WebRTC quality rollup for a session.

No auth required — session_id acts as the authorization, same as join endpoints. Called from the browser at end-of-call (and periodically as a backup) with a pre-aggregated rollup of inbound/outbound RTP audio stats sampled via RTCPeerConnection.getStats().

Last write wins: each call overwrites the stored rollup. The client is expected to send cumulative/aggregate values, not deltas.

post/v1/sessions/{session_id}/network-stats

Path parameters

session_idstring required

Request body

user_agentstring nullable
livekit_regionstring nullable
client_versionstring nullable

Response

Successful Response

{"stackTrail":"paths:/v1/sessions/{session_id}/network-stats:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.