Skip to main content
room(options?) Returns configuration information about the room you’re currently connected to, including room-level settings, domain-level settings, and any token configuration. Also available after preAuth(), before joining. If a room URL has been specified but join() hasn’t completed yet, resolves with { roomUrlPendingJoin: string }. Resolves to null if no room URL has been specified.

Parameters

includeRoomConfigDefaults
boolean
Optional. When false, only explicitly-set properties are returned, omitting defaults. Defaults to true.

Return value

Returns Promise<DailyRoomInfo | DailyPendingRoomInfo | null>. DailyRoomInfo contains:
id
string
Room UUID.
name
string
Room name.
config
object
Room-level configuration. Some properties are omitted for security purposes. See room configuration for the full property list.
domainConfig
object
Domain-level configuration. Some properties are omitted for security purposes. See domain configuration for the full property list.
tokenConfig
object
Configuration from the meeting token used to join, if any. See meeting tokens for all properties.

Example

const info = await call.room();

if (info && 'config' in info) {
  console.log('Max participants:', info.config.max_participants);
  console.log('Recording enabled:', info.config.enable_recording);
}

See also