# Tavus API Inventory

## Base URL
- **Production**: `https://tavusapi.com/v2`
- **Authentication**: `x-api-key` header (string)

## Conversation Endpoints

### 1. Create Conversation
- **Method**: POST
- **Endpoint**: `/v2/conversations`
- **Purpose**: Create a new conversation with AI replica

### 2. List Conversations
- **Method**: GET
- **Endpoint**: `/v2/conversations`
- **Purpose**: List all conversations

### 3. Get Single Conversation
- **Method**: GET
- **Endpoint**: `/v2/conversations/{conversation_id}`
- **Purpose**: Retrieve details for specific conversation

### 4. End Conversation
- **Method**: POST
- **Endpoint**: `/v2/conversations/{conversation_id}/end`
- **Purpose**: Manually end an active conversation

### 5. Delete Conversation
- **Method**: DELETE
- **Endpoint**: `/v2/conversations/{conversation_id}`
- **Purpose**: Delete conversation record

## Key Components
- **Replica**: Defines audio/visual appearance (replica_id)
- **Persona**: Defines behavior and capabilities (persona_id)

## Authentication Requirements
- All requests require `x-api-key` header
- Invalid tokens return 401 Unauthorized with message "Invalid access token"

## Current Implementation Gaps
Our fake server currently uses:
- ❌ `/api/conversations/create` instead of `/v2/conversations`
- ❌ `personaKey` parameter instead of `persona_id` + `replica_id`
- ❌ Missing timeout parameters (`max_call_duration`, `participant_left_timeout`, `participant_absent_timeout`)
- ❌ Different response format (uses `persona_key` instead of `persona_id`/`replica_id`)