Fetch details of an active session
realtime_kit.active_session.get_active_session(strmeeting_id, ActiveSessionGetActiveSessionParams**kwargs) -> ActiveSessionGetActiveSessionResponse
GET/accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/active-session
Returns details of an ongoing active session for the given meeting ID.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Parameters
Fetch details of an active session
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.active_session.get_active_session(
meeting_id="meeting_id",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
app_id="14a396e7-ca44-4937-bf1f-050a69118543",
)
print(response.data){
"data": {
"associated_id": "6bf2b8be-04dd-4191-b602-1128921a306b",
"created_at": "2022-01-12T14:21:34.398Z",
"ended_at": "null",
"id": "813432c7-3c5a-45e2-9acf-eef7061c7584",
"live_participants": 1,
"max_concurrent_participants": 2,
"meeting_display_name": "Test Meeting",
"minutes_consumed": 2.3434,
"organization_id": "",
"started_at": "2022-01-12T14:21:34.388Z",
"status": "LIVE",
"type": "meeting",
"updated_at": "2022-01-12T14:26:00.784Z"
},
"success": true
}{
"error": {
"code": 404,
"message": "No active session found for meeting_id 6bf2b8be-04dd-4191-b602-1128921a306b"
},
"success": false
}Returns Examples
{
"data": {
"associated_id": "6bf2b8be-04dd-4191-b602-1128921a306b",
"created_at": "2022-01-12T14:21:34.398Z",
"ended_at": "null",
"id": "813432c7-3c5a-45e2-9acf-eef7061c7584",
"live_participants": 1,
"max_concurrent_participants": 2,
"meeting_display_name": "Test Meeting",
"minutes_consumed": 2.3434,
"organization_id": "",
"started_at": "2022-01-12T14:21:34.388Z",
"status": "LIVE",
"type": "meeting",
"updated_at": "2022-01-12T14:26:00.784Z"
},
"success": true
}{
"error": {
"code": 404,
"message": "No active session found for meeting_id 6bf2b8be-04dd-4191-b602-1128921a306b"
},
"success": false
}