⭐Get or Create Default Room

Gets the user's default room. If it doesn't exist, creates a new default room.

Below is a list of available parameters when creating a default room

Parameter
Type
Required
Default
Description

creator_email

string

Yes

n/a

Email address of the user who will own the room. Must be registered in the system

name

string

Yes

n/a

Room name

fallback_name

string

No

null

Alternative name to use if room name conflicts

lang

string

No

en-US

Room session language code(see)

options

No

See object

Room session options(see)

circle-exclamation

Example request

curl -L -X POST 'https://<DOMAIN>/xapi/v2/room' \
-H 'Content-Type: application/json' \
--data-raw '{
  "name": "Test Room",
  "fallback_name": "Test Room  Fallback",
  "lang": "en-US",
  "creator_email": "[email protected]",
  "options": {
    "allow_rating": true,
    "preparation_time": 15,
    "session_duration": 60,
    "Chat": {
      "OffMessageModule": false,
      "OffGeneralMsging": false,
      "OffGeneralMsgLimitForUser": false,
      "OffSpecialMsging": false,
      "OffSpecialMsgToAdmin": false,
      "OffSpecialMsgToUser": false,
      "OffNewMsgSound": false,
      "OffClearForReplay": false,
      "OnNewMsgSoundInAll": false,
      "OnNewMsgNotifyInAll": false
    },
    "Duration": {
      "AllowExtendTime": true,
      "UseRemainingTime": false
    },
    "allow_users_stream_self_cam_mic": true,
    "hide_user_streams": false,
    "enable_attendance_check": true,
    "enable_simultaneous_interpretation": false,
    "enable_simultaneous_interpretation_for_users": false,
    "start_active": false,
    "return_url": "",
    "allow_reactions": true
  }
}'

Example response

circle-info

You need to save the ROOM_GUID parameter to perform other operations related to the room

  • If the user's default room already exists, returns the existing room with 200 OK

  • If the user's default room does not exist, creates a new one and returns with 201 Created

A successful response returns the following body:

Last updated