Fetch details of a session
client.realtimeKit.sessions.getSessionDetails(stringappId, stringsessionId, SessionGetSessionDetailsParams { account_id, include_breakout_rooms } params, RequestOptionsoptions?): SessionGetSessionDetailsResponse { data, success }
GET/accounts/{account_id}/realtime/kit/{app_id}/sessions/{session_id}
Returns data of the given session ID including recording details.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Fetch details of a session
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const response = await client.realtimeKit.sessions.getSessionDetails('app_id', 'session_id', {
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
});
console.log(response.data);{
"data": {
"session": {
"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
}Returns Examples
{
"data": {
"session": {
"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
}