VideoSDK · Example Payload

Fetch Sessions

Retrieve the first page of sessions for a specific room, 20 per page.

VideoAudioWebRTCReal-Time CommunicationLive StreamingHLSRTMPAI AgentsVideo ConferencingWebSocket

Fetch Sessions is an example object payload from VideoSDK, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

summarydescriptionrequestresponse

Example Payload

Raw ↑
{
  "summary": "Fetch sessions for a room",
  "description": "Retrieve the first page of sessions for a specific room, 20 per page.",
  "request": {
    "method": "GET",
    "url": "https://api.videosdk.live/v2/sessions/?roomId=abc-xyzw-lmno&page=1&perPage=20",
    "headers": {
      "Authorization": "<JWT_TOKEN>"
    }
  },
  "response": {
    "status": 200,
    "body": {
      "pageInfo": {
        "currentPage": 1,
        "perPage": 20,
        "lastPage": 1,
        "total": 3
      },
      "data": [
        {
          "id": "62e4a2a8f5d3c96e7f0b1234",
          "roomId": "abc-xyzw-lmno",
          "start": "2022-07-30T10:00:00.000Z",
          "end": "2022-07-30T11:00:00.000Z",
          "status": "completed",
          "participants": [
            {
              "participantId": "alice",
              "name": "Alice",
              "timelog": [
                {
                  "start": "2022-07-30T10:00:00.000Z",
                  "end": "2022-07-30T11:00:00.000Z"
                }
              ]
            }
          ],
          "links": {
            "get_room": "https://api.videosdk.live/v2/rooms/abc-xyzw-lmno",
            "get_session": "https://api.videosdk.live/v2/sessions/62e4a2a8f5d3c96e7f0b1234"
          }
        }
      ]
    }
  }
}