steep-balloon-41261
04/20/2023, 6:40 PMmagnificent-art-43333
04/20/2023, 7:08 PMmagnificent-art-43333
04/20/2023, 7:08 PMbrief-refrigerator-69901
04/20/2023, 7:17 PMbrief-refrigerator-69901
04/20/2023, 7:30 PMmagnificent-art-43333
04/20/2023, 7:44 PMbrief-refrigerator-69901
04/20/2023, 7:54 PMbrief-refrigerator-69901
04/20/2023, 9:09 PMbrief-refrigerator-69901
04/20/2023, 9:12 PMmagnificent-art-43333
04/20/2023, 9:13 PMbrief-refrigerator-69901
04/20/2023, 9:14 PMacoustic-engineer-41666
04/20/2023, 9:15 PMacoustic-engineer-41666
04/20/2023, 9:23 PMbrief-refrigerator-69901
04/20/2023, 9:23 PMacoustic-engineer-41666
04/20/2023, 9:24 PMCSV
link that you can use to download a CSV of that table. These links are generated with each call and they only include data for rooms from the last 14 days.brief-refrigerator-69901
04/20/2023, 9:28 PMbrief-refrigerator-69901
04/20/2023, 9:29 PMacoustic-engineer-41666
04/20/2023, 9:29 PM<https://cloud.livekit.io/api/projects/><YOUR_PROJECT_ID>/sessions/closed/csv
— details for closed rooms
• <http://cloud.livekit.io/projects/|cloud.livekit.io/projects/><YOUR_PROJECT_ID>/sessions/<ROOM_ID>
— details for the participants in a given sessionacoustic-engineer-41666
04/20/2023, 9:30 PMacoustic-engineer-41666
04/20/2023, 9:31 PMbrief-refrigerator-69901
04/20/2023, 9:31 PMbrief-refrigerator-69901
04/20/2023, 9:32 PMacoustic-engineer-41666
04/20/2023, 9:32 PMlivekit-cli
authbrief-refrigerator-69901
04/20/2023, 9:32 PMacoustic-engineer-41666
04/20/2023, 9:32 PMbrief-refrigerator-69901
04/20/2023, 9:43 PMacoustic-engineer-41666
04/20/2023, 9:44 PM__Secure-next-auth.browser-session-token
cookie from your browser session and save those as the cookies you use from your http client to fetch those CSVs. I believe that session should be valid for 30 daysacoustic-engineer-41666
04/20/2023, 9:44 PMbrief-refrigerator-69901
04/20/2023, 9:50 PMbrief-refrigerator-69901
04/20/2023, 9:52 PMacoustic-engineer-41666
04/20/2023, 10:01 PMbrief-refrigerator-69901
04/20/2023, 10:02 PMbrief-refrigerator-69901
04/20/2023, 10:04 PMbrief-refrigerator-69901
04/20/2023, 10:05 PMacoustic-engineer-41666
04/20/2023, 10:07 PMacoustic-engineer-41666
04/20/2023, 10:07 PMbrief-refrigerator-69901
04/20/2023, 10:26 PM[object Object]
brief-refrigerator-69901
04/20/2023, 10:28 PM<https://cloud.livekit.io/api/projects/><YOUR_PROJECT_ID>/sessions/<SESSION_ID>/csv
Endpoint which could simply provide the single row of that session_idbrief-refrigerator-69901
04/20/2023, 10:33 PMstarted_at
just like active already includes would pretty neat.brief-refrigerator-69901
04/20/2023, 10:35 PMacoustic-engineer-41666
04/20/2023, 10:37 PMacoustic-engineer-41666
04/20/2023, 10:37 PMbrief-refrigerator-69901
04/20/2023, 10:47 PMrough-agent-34205
04/21/2023, 7:47 AMwebhooks
, but that has its drawbacks. Being able to get the data as csv or JSON payload returned from an API call would make my life a lot easier in this regard.magnificent-art-43333
04/21/2023, 7:59 AMrough-agent-34205
04/21/2023, 9:04 AMbrief-refrigerator-69901
04/21/2023, 1:40 PMcold-camera-7729
04/27/2023, 8:08 AMlivekit-cli
auth..."rough-agent-34205
05/31/2023, 9:32 AMmagnificent-art-43333
06/01/2023, 1:49 AMdry-elephant-14928
06/02/2023, 6:55 PMcurl -H"Authorization: Bearer <token>" <https://cloud-api.livekit.io/api/project/><projectID>/sessions
Getting details of a single session
curl -H"Authorization: Bearer <token>" <https://cloud-api.livekit.io/api/project/><projectID>/sessions/<sessionID>
The token required here is just a standard LiveKit Access Token. It should contain the grant roomList
(read-only view of all rooms). You can use our CLI to create a test token:
livekit-cli create-token --list --valid-for 10000h
rough-agent-34205
06/02/2023, 8:07 PMbrief-refrigerator-69901
06/03/2023, 2:40 AMrough-agent-34205
06/05/2023, 10:06 AMpublished_tracks
informationbright-dream-51521
06/06/2023, 1:56 AM"participants": [
{
"participantIdentity": "u1",
....
"publishedSources": {
"cameraTrack": true,
"microphoneTrack": true
}
}
]
please let us know if you run into any issuesrough-agent-34205
06/06/2023, 1:34 PM/sessions
call, do only sessions that have ended get reported or also those that are currently active?
◦ If active sessions are listed as well, does the /sessions/<session_id>
call list participants that are currently joined to a room or only those that have disconnected?
Perhaps some context for these questions is helpful: We intend to use this information for billing our clients on a monthly basis and we are wondering what happens in case sessions are running for extended periods of time.bright-dream-51521
06/06/2023, 1:57 PMbillions-summer-21168
07/19/2023, 6:38 PMdry-elephant-14928
07/22/2023, 9:39 PMbillions-summer-21168
08/03/2023, 11:15 PMsessionId
that looks something like like RM_1234asdf1B
. When I hit the second one (listing a single session using that sessionId
, it comes back with a field roomId
that matches.
Should that roomId
be called sessionId
instead?billions-summer-21168
08/03/2023, 11:22 PMcreatedAt
and lastActive
from the first endpoint and startTime
and endTime
from the second endpoint mean?powerful-garage-56223
08/14/2023, 5:29 PMroomId
and sessionId
are indeed the same thing. These were internal apis that we exposed and there are still some awkward naming relics there.
createdAt
and startedAt
are the same
lastActive
is either now, or when then room was deleted
endedAt
is either null, or when the room was deletedbillions-summer-21168
08/14/2023, 5:42 PM