## Fetch all sessions of an App `realtime_kit.sessions.get_sessions(strapp_id, SessionGetSessionsParams**kwargs) -> SessionGetSessionsResponse` **get** `/accounts/{account_id}/realtime/kit/{app_id}/sessions` Returns details of all sessions of an App. ### Parameters - `account_id: str` The account identifier tag. - `app_id: str` The app identifier tag. - `associated_id: Optional[str]` ID of the meeting that sessions should be associated with - `end_time: Optional[Union[str, datetime]]` The end time range for which you want to retrieve the meetings. The time must be specified in ISO format. - `page_no: Optional[float]` The page number from which you want your page search results to be displayed. - `participants: Optional[str]` - `per_page: Optional[float]` Number of results per page - `search: Optional[str]` Search string that matches sessions based on meeting title, meeting ID, and session ID - `sort_by: Optional[Literal["minutesConsumed", "createdAt"]]` - `"minutesConsumed"` - `"createdAt"` - `sort_order: Optional[Literal["ASC", "DESC"]]` - `"ASC"` - `"DESC"` - `start_time: Optional[Union[str, datetime]]` The start time range for which you want to retrieve the meetings. The time must be specified in ISO format. - `status: Optional[Literal["LIVE", "ENDED"]]` - `"LIVE"` - `"ENDED"` ### Returns - `class SessionGetSessionsResponse: …` - `data: Optional[Data]` - `sessions: Optional[List[DataSession]]` - `id: str` ID of the session - `associated_id: str` ID of the meeting this session is associated with. In the case of V2 meetings, it is always a UUID. In V1 meetings, it is a room name of the form `abcdef-ghijkl` - `created_at: str` timestamp when session created - `live_participants: float` number of participants currently in the session - `max_concurrent_participants: float` number of maximum participants that were in the session - `meeting_display_name: str` Title of the meeting this session belongs to - `minutes_consumed: float` number of minutes consumed since the session started - `organization_id: str` App id that hosted this session - `started_at: str` timestamp when session started - `status: Literal["LIVE", "ENDED"]` current status of session - `"LIVE"` - `"ENDED"` - `type: Literal["meeting", "livestream", "participant"]` type of session - `"meeting"` - `"livestream"` - `"participant"` - `updated_at: str` timestamp when session was last updated - `breakout_rooms: Optional[List[object]]` - `ended_at: Optional[str]` timestamp when session ended - `meta: Optional[object]` Any meta data about session. - `success: Optional[bool]` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.realtime_kit.sessions.get_sessions( app_id="app_id", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(response.data) ``` #### Response ```json { "data": { "sessions": [ { "id": "id", "associated_id": "associated_id", "created_at": "created_at", "live_participants": 0, "max_concurrent_participants": 0, "meeting_display_name": "meeting_display_name", "minutes_consumed": 0, "organization_id": "organization_id", "started_at": "started_at", "status": "LIVE", "type": "meeting", "updated_at": "updated_at", "breakout_rooms": [ {} ], "ended_at": "ended_at", "meta": {} } ] }, "success": true } ```