> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# room()

> Returns configuration information about the current room.

`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()`](https://docs.daily.co/reference/react-native/instance-methods/pre-auth), 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](https://docs.daily.co/reference/rest-api/rooms/get-room.md#response-config) for the full property list.

**domainConfig** `object`

Domain-level configuration. Some properties are omitted for security purposes. See [domain configuration](https://docs.daily.co/reference/rest-api/domain) for the full property list.

**tokenConfig** `object`

Configuration from the meeting token used to join, if any. See [meeting tokens](https://docs.daily.co/reference/rest-api/meeting-tokens/create-meeting-token.md) for all properties.

## Example

```javascript theme={null}
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

> [card] Methods
>
> * [preAuth()](https://docs.daily.co/reference/react-native/instance-methods/pre-auth.md)
> * [join()](https://docs.daily.co/reference/react-native/instance-methods/join.md)

> [card] REST API
>
> * [Get room](https://docs.daily.co/reference/rest-api/rooms/get-room.md)
> * [Get domain config](https://docs.daily.co/reference/rest-api/domain/get-domain-config.md)
> * [Create meeting token](https://docs.daily.co/reference/rest-api/meeting-tokens/create-meeting-token.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.