> ## 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?)`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

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()`](/reference/daily-js/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

<ParamField body="includeRoomConfigDefaults" type="boolean">
  Optional. When `false`, only explicitly-set properties are returned, omitting defaults. Defaults to `true`.
</ParamField>

## Return value

Returns `Promise<DailyRoomInfo | DailyPendingRoomInfo | null>`.

`DailyRoomInfo` contains:

<ResponseField name="id" type="string">Room UUID.</ResponseField>
<ResponseField name="name" type="string">Room name.</ResponseField>

<ResponseField name="config" type="object">
  Room-level configuration. Some properties are omitted for security purposes. See [room configuration](/reference/rest-api/rooms/get-room#response-config) for the full property list.
</ResponseField>

<ResponseField name="domainConfig" type="object">
  Domain-level configuration. Some properties are omitted for security purposes. See [domain configuration](/reference/rest-api/domain) for the full property list.
</ResponseField>

<ResponseField name="tokenConfig" type="object">
  Configuration from the meeting token used to join, if any. See [meeting tokens](/reference/rest-api/meeting-tokens/create-meeting-token) for all properties.
</ResponseField>

## 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

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [preAuth()](/reference/daily-js/instance-methods/pre-auth)
    * [join()](/reference/daily-js/instance-methods/join)
  </Card>

  <Card title="REST API" icon="server" iconType="solid">
    * [Get room](/reference/rest-api/rooms/get-room)
    * [Get domain config](/reference/rest-api/domain/get-domain-config)
    * [Create meeting token](/reference/rest-api/meeting-tokens/create-meeting-token)
  </Card>
</CardGroup>
