Skip to main content

sessions

Creates, updates, deletes, gets or lists a sessions resource.

Overview​

Namesessions
TypeResource
Idcloudflare.realtime_kit.sessions

Fields​

The following fields are returned by SELECT queries:

Get all sessions success response

NameDatatypeDescription
dataobject
successboolean

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, app_idpage_no, per_page, sort_by, sort_order, start_time, end_time, participants, status, search, associated_idReturns details of all sessions of an App.
generate_summary_of_transcriptsinsertaccount_id, app_id, session_idTrigger Summary generation of Transcripts for the session 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.
session_idstringThe session ID.
associated_idstringID of the meeting that sessions should be associated with
end_timestring (date-time)The end time range for which you want to retrieve the meetings. The time must be specified in ISO format.
page_nonumberThe page number from which you want your page search results to be displayed.
participantsstring
per_pagenumberNumber of results per page
sort_bystring
sort_orderstring
start_timestring (date-time)The start time range for which you want to retrieve the meetings. The time must be specified in ISO format.
statusstring

SELECT examples​

Returns details of all sessions of an App.

SELECT
data,
success
FROM cloudflare.realtime_kit.sessions
WHERE account_id = '{{ account_id }}' -- required
AND app_id = '{{ app_id }}' -- required
AND page_no = '{{ page_no }}'
AND per_page = '{{ per_page }}'
AND sort_by = '{{ sort_by }}'
AND sort_order = '{{ sort_order }}'
AND start_time = '{{ start_time }}'
AND end_time = '{{ end_time }}'
AND participants = '{{ participants }}'
AND status = '{{ status }}'
AND search = '{{ search }}'
AND associated_id = '{{ associated_id }}'
;

INSERT examples​

Trigger Summary generation of Transcripts for the session ID.

INSERT INTO cloudflare.realtime_kit.sessions (
account_id,
app_id,
session_id
)
SELECT
'{{ account_id }}',
'{{ app_id }}',
'{{ session_id }}'
RETURNING
data,
success
;