refined-caravan-84858
11/09/2025, 5:25 PMtall-airline-16756
11/09/2025, 5:25 PMtall-airline-16756
11/09/2025, 5:26 PMegress field set to 1. Plus, the endedAt field will be null for these active sessions. If you have any more questions or need further clarification, feel free to ask—I'm here to help!
Sources: Analytics API | LiveKit docsrefined-caravan-84858
11/09/2025, 5:29 PMtall-airline-16756
11/09/2025, 5:29 PMendTime field in the response. If you don’t see an endTime or if it’s null, that means the session is ongoing and active. If you have any questions or need further help, I’m here for you!
Sources: Analytics API | LiveKit docsrefined-caravan-84858
11/09/2025, 5:30 PMtall-airline-16756
11/09/2025, 5:31 PMnull, it means the session is still going strong.
• egress: This one gives you a clear picture of the session's status:
◦ `0`: Egress hasn't started yet
◦ `1`: Egress is active, so the session is ongoing
◦ `2`: Egress has finished
So, if you see that endedAt is null and egress is 1, you’re looking at an active session. I hope this helps clarify things for you!
Sources: Analytics API | LiveKit docsrefined-caravan-84858
11/29/2025, 10:34 AMtall-airline-16756
11/29/2025, 10:35 AMendedAt timestamp can indicate whether a session has concluded, it is recommended to rely on the egress field for the most reliable determination of session status. The egress field explicitly indicates the session state:
• `0`: Session never started
• `1`: Session is active
• `2`: Session has ended
Using egress == 1 is the most explicit and reliable way to confirm if a session is active, while endedAt can serve as supporting information.
Sources: Analytics API | LiveKit docsrefined-caravan-84858
11/29/2025, 10:37 AMtall-airline-16756
11/29/2025, 10:37 AMegress field may depend on the specific API being used, and this will help provide a more accurate response.
Sources: Rooms, participants, and tracks | LiveKit docs | livekit-api/livekit/api/livekit_api.py | autocomplete/fish_autocomplete | livekit-protocol/src/livekit.rsrefined-caravan-84858
11/29/2025, 10:38 AMtall-airline-16756
11/29/2025, 10:38 AM