πŸ†•Creating a Session

This step shows how to create a session with GroupsAPI.

The list below explains all the parameters available when creating a session.

Parameter
Type
Required
Default
Description

name

string

Yes

n/a

Session's name

description

string

Yes

n/a

Session's description

tags

string

No

null

A comma separated list of tags

start_date

string

Yes

n/a

Date which the session will start(see)

duration

integer

Yes

n/a

Session duration in minutes. It can be between 5 and 360 minutes.

lang

string

No

tr-TR

Language code(see)

timezone

string

No

Europe/Istanbul

TZ identifier (see)

options

No

See object

Contains various session options(see)

allow_recording

bool

No

true

Flag to determine if the session will be recorded

inaccessible_replay

bool

No

false

Flag to determine if the session's replay should be inaccessible

Example below shows how to create a new session with a specified set of parameters.

curl --location --request POST 'https://<DOMAIN>/xapi/session' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
    "name": "test session ",
    "start_date": "2024-09-27T14:00:25.699Z",
    "duration": "6",
    "options": {
        "allow_rating": false,
        "chat": {
            "offMessageModule": true,
            "offGeneralMsging": false
        },
        "duration": {
            "allowExtendTime": false,
            "useRemainingTime": true
        },
        "allow_users_stream_self_cam_mic": false,
    }
}'

Below is an example response from the service:

Last updated

Was this helpful?