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

# Private Rooms

> Create authenticated conversations with meeting tokens for enhanced security.

## Create a Private Conversation

### 1. Step 1: Create Your Conversation

To create a private room, set `require_auth` to `true`:

```shell cURL theme={null}
curl --request POST \
  --url https://tavusapi.com/v2/conversations \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api_key>' \
  --data '{
  "pal_id": "pcb7a34da5fe",
  "face_id": "rc9cff32ceba",
  "require_auth": true
}'
```

### 2. Step 2: Join the Conversation

The response includes a `meeting_token`:

```json theme={null}
{
  "conversation_id": "ca4301628cb9",
  "conversation_url": "https://tavus.daily.co/ca4301628cb9",
  "meeting_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "status": "active"
}
```

Use the token by appending it to the URL:

```
https://tavus.daily.co/ca4301628cb9?t=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
```

Or pass it to the Daily SDK:

```javascript theme={null}
callFrame.join({ url: conversation_url, token: meeting_token });
```

> [!NOTE]
>
> If a participant cannot join a private room, confirm they are using the `meeting_token` returned for that conversation. Tokens expire with the join window; create a new authenticated conversation instead of reusing an expired token.

> [!TIP]
>
> **Optional: Tighten your join window**
>
> You can set `properties.participant_absent_timeout` when creating the conversation to control how long the conversation stays alive before a participant joins.
>
> For conversations created with `require_auth: true`, the meeting token's expiry duration is set to the value of `participant_absent_timeout`. If no one joins within that window, the conversation is automatically ended and the token expires.
>
> See [Call Duration and Timeout](https://docs.tavus.io/sections/conversational-video-interface/conversation/customizations/call-duration-and-timeout.md) for more details.


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