Skip to main content

active_session

Creates, updates, deletes, gets or lists an active_session resource.

Overview

Nameactive_session
TypeResource
Idcloudflare.realtime_kit.active_session

Fields

The following fields are returned by SELECT queries:

Active Session Success response

NameDatatypeDescription
dataobject
successboolean

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectmeeting_id, account_id, app_idReturns details of an ongoing active session for the given meeting ID.
kickexecaccount_id, app_id, meeting_id, participant_ids, custom_participant_idsKicks one or more participants from an active session using user ID or custom participant ID.
kick_allexecaccount_id, app_id, meeting_idKicks all participants from an active session for the given meeting ID.
muteexecaccount_id, app_id, meeting_id, participant_ids, custom_participant_idsMutes one or more participants from an active session using user ID or custom participant ID.
mute_allexecaccount_id, app_id, meeting_id, allow_unmuteMutes all participants of an active session for the given meeting ID.
create_pollexecaccount_id, app_id, meeting_id, question, optionsCreates a new poll in an active session for the given meeting ID.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
app_idstringThe Access application ID.
meeting_idstringThe Realtime Kit meeting ID.

SELECT examples

Returns details of an ongoing active session for the given meeting ID.

SELECT
data,
success
FROM cloudflare.realtime_kit.active_session
WHERE meeting_id = '{{ meeting_id }}' -- required
AND account_id = '{{ account_id }}' -- required
AND app_id = '{{ app_id }}' -- required
;

Lifecycle Methods

Kicks one or more participants from an active session using user ID or custom participant ID.

EXEC cloudflare.realtime_kit.active_session.kick
@account_id='{{ account_id }}' --required,
@app_id='{{ app_id }}' --required,
@meeting_id='{{ meeting_id }}' --required
@@json=
'{
"custom_participant_ids": "{{ custom_participant_ids }}",
"participant_ids": "{{ participant_ids }}"
}'
;