Skip to main content

ROOM API Reference

Module Information

Service Files:

  • Private: service/private/room.js
  • Public: service/room.js

Available Services: 16 Documented Services: 16


room.book

Book a new meeting room. Creates a scheduled meeting node (category=schedule, ext=schedule) in the user home directory with attendees, title, message, and date metadata. Title defaults to a locale-generated headline if not provided. Date defaults to current time if not provided.

PropertyValue
ScopeHub (requires hub context)
PermissionAdmin (6)

Endpoint:

https://hostname/-/svc/room.book

Parameters

ParameterTypeRequiredDefaultDescription
titlestringNo--
datestringNo--
messagestringNo--

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error codes not documented


room.get_meeting_members

Get all members invited to a meeting room. Returns the list of DMZ users who have been granted access to a specific meeting node.

PropertyValue
ScopeHub (requires hub context)
PermissionAdmin (6)

Endpoint:

https://hostname/-/svc/room.get_meeting_members

Parameters

ParameterTypeRequiredDefaultDescription
nidstringYes--

Returns

FieldTypeDescription
typeany-
descriptionany-
itemsobject-
items.idstring-
items.emailstring-
items.namestring-

Possible Errors

Error codes not documented


room.get_screen

Initialize a screen sharing session for a room. Generates a unique screen_id, grants permission on it, and sends room_invite_next to all current room attendees assigning the requester as presenter and others as listeners. Only available for non-private hub areas.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/room.get_screen

Parameters

ParameterTypeRequiredDefaultDescription
parent_idstringYes--
parent_typestringYes--
socket_idstringYes--
device_idstringYes--

Returns

FieldTypeDescription
typeany-
descriptionany-
properties[object Object]-

Possible Errors

Error codes not documented


room.get

Get or create a room for the current user. Retrieves an existing room matching the given device, socket, and room type, or creates a new one if none exists. Mapped to the get_or_create implementation method.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/room.get

Parameters

ParameterTypeRequiredDefaultDescription
device_idstringYes--
socket_idstringYes--
room_typestringYes--
idstringNo--

Returns

FieldTypeDescription
typeany-
descriptionany-
properties[object Object]-

Possible Errors

Error codes not documented


room.hello

Register a guest user session for public meeting access. Binds a guest name to the current session cookie via cookie_bind_guest. Used as the entry point for unauthenticated users joining a shared meeting link.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/room.hello

Parameters

ParameterTypeRequiredDefaultDescription
namestringYes--

Returns

FieldTypeDescription
typeany-
descriptionany-

Possible Errors

Error codes not documented


room.invite

Invite a peer to join an active room. Sends a room_invite_next event to the target guest via WebSocket (signaling.message) with linkup type, assigning them the listener role. Notifies the guest socket on their endpoint node.

PropertyValue
ScopeHub (requires hub context)
PermissionWrite (4)

Endpoint:

https://hostname/-/svc/room.invite

Parameters

ParameterTypeRequiredDefaultDescription
room_idstringYes--
guestobjectYes--
room_typestringYes--

Returns

FieldTypeDescription
typeany-
descriptionany-
itemsobject-
items.uidstring-
items.socket_idstring-
items.typestring-
items.servicestring-

Possible Errors

Error codes not documented


room.join

Join an active room and notify the hub owner. Retrieves or creates a room entry, attaches hub area and node details, then sends a WebSocket notification to the hub owner's sockets. Returns room data including current attendees list.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/room.join

Parameters

ParameterTypeRequiredDefaultDescription
idstringYes--
socket_idstringYes--
device_idstringYes--
room_typestringYes--
endpointAddressstringNo--
endpointRoutestringNo--

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error codes not documented


room.leave

Leave an active room and notify remaining peers. Removes the user from the room via room_leave_next, pushes user online status to 1 (online/idle), and sends a room.leave signaling message to all remaining attendees via WebSocket.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/room.leave

Parameters

ParameterTypeRequiredDefaultDescription
socket_idstringYes--
room_idstringYes--
hub_idstringYes--

Returns

FieldTypeDescription
typeany-
descriptionany-

Possible Errors

Error codes not documented


Generate a public shareable link for a meeting room node. Creates a DMZ grant token for the specified node, grants permission to the public_id system user, and returns a shareable URL containing the access token.

PropertyValue
ScopeHub (requires hub context)
PermissionAdmin (6)

Endpoint:

https://hostname/-/svc/room.public_link

Parameters

ParameterTypeRequiredDefaultDescription
nidstringYes--
passwordstringNo--
daysintegerNo0-
hoursintegerNo0-
permissionintegerNo--

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error codes not documented


room.shutdown

Shut down an active room session. Reserved for admin-level room lifecycle management. Returns an empty object on completion.

PropertyValue
ScopeHub (requires hub context)
PermissionAdmin (6)

Endpoint:

https://hostname/-/svc/room.shutdown

Parameters

ParameterTypeRequiredDefaultDescription
room_idstringYes--

Returns

FieldTypeDescription
typeany-
descriptionany-

Possible Errors

Error codes not documented


room.remove

Remove a meeting room and revoke all permissions. Revokes all permissions on the meeting node using permission_revoke with scope 'meeting' and returns the node ID as confirmation.

PropertyValue
ScopeHub (requires hub context)
PermissionAdmin (6)

Endpoint:

https://hostname/-/svc/room.remove

Parameters

ParameterTypeRequiredDefaultDescription
nidstringYes--

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error codes not documented


room.request_screen_access

Request access to a peer screen sharing session. Reserved endpoint for future screen access request workflow. Currently not active in the service implementation.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/room.request_screen_access

Parameters

No parameters

Returns

FieldTypeDescription
typeany-
descriptionany-

Possible Errors

Error codes not documented


room.requestAccess

Request access to join an active room as a participant. Verifies room permission via room_access, retrieves presenter and current peers, pushes user online status to 2 (in-meeting), and if the requester is the presenter sends a meeting.start signal to all peers.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/room.requestAccess

Parameters

ParameterTypeRequiredDefaultDescription
socket_idstringYes--
room_idstringYes--
hub_idstringYes--

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error CodeHTTP StatusDescription
WEAK_PRIVILEGE OOOP-User does not have sufficient permission to access the room

room.unified_room

Manage unified room state for multi-participant sessions. Supports four operations via the flag parameter: get (retrieve room state), add (join with media settings using defaults), update (join with explicit required media settings), and remove (leave the unified room).

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/room.unified_room

Parameters

ParameterTypeRequiredDefaultDescription
flagstringYes--
idstringYes--
uidstringNo--
is_mic_enabledintegerNo--
is_video_enabledintegerNo--
is_share_enabledintegerNo--
is_write_enabledintegerNo--
metadataobjectNo--

Returns

FieldTypeDescription
typeany-
descriptionany-

Possible Errors

Error codes not documented


room.update

Update a scheduled meeting room. Supports partial or full updates controlled by the flag parameter. Flags: 'when' updates date only, 'title' updates title and renames the node, 'agenda' updates message, 'member' updates attendees and sends email invitations, 'all' updates all fields. Commits invitation emails to new attendees when flag includes member changes.

PropertyValue
ScopeHub (requires hub context)
PermissionAdmin (6)

Endpoint:

https://hostname/-/svc/room.update

Parameters

ParameterTypeRequiredDefaultDescription
flagstringYes--
nidstringYes--
datestringNo--
titlestringNo--
messagestringNo--
attendeesarrayNo--

Returns

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors

Error codes not documented


room.users

List all users currently in a room. Reserved endpoint for room participant listing. Currently not active in the service implementation.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/room.users

Parameters

No parameters

Returns

FieldTypeDescription
typeany-
descriptionany-

Possible Errors

Error codes not documented


  • ACL System - Permission model
  • Service Routing - URL patterns
  • Error Handling - Error codes