# Tavus API Parameter Matrix

## POST /v2/conversations Parameters

### Required Parameters
| Parameter | Type | Description | Validation |
|-----------|------|-------------|------------|
| `persona_id` | string | Defines replica behavior and capabilities | Required for all conversations |
| `replica_id` | string | Unique identifier for AI replica | Required for all conversations |

### Optional Parameters
| Parameter | Type | Default | Description | Validation |
|-----------|------|---------|-------------|------------|
| `audio_only` | boolean | false | Enable audio-only conversation mode | Optional |
| `callback_url` | string | - | Webhook URL for conversation status updates | Optional URL format |
| `conversation_name` | string | - | Human-readable name for conversation | Optional |
| `conversational_context` | string | - | Context to guide conversation behavior | Optional |
| `custom_greeting` | string | - | Override default replica greeting | Optional |
| `memory_stores` | string[] | - | Array of memory store identifiers | Optional array |
| `document_ids` | string[] | - | Array of document identifiers for context | Optional array |
| `test_mode` | boolean | false | Enable test mode for development | Optional |
| `enable_recording` | boolean | - | Enable conversation recording | Optional |
| `language` | string | "multilingual" | Language setting with auto-detection | Optional |

### Timeout Parameters (Critical for Fake Server)
| Parameter | Type | Default | Description | Validation |
|-----------|------|---------|-------------|------------|
| `max_call_duration` | number | 3600 | Maximum call duration in seconds (1 hour) | Optional, seconds |
| `participant_left_timeout` | number | - | Timeout after last participant leaves | Optional, seconds |
| `participant_absent_timeout` | number | 300 | Timeout when no participants (5 minutes) | Optional, seconds |

## Authentication Parameters
| Parameter | Location | Type | Description | Validation |
|-----------|----------|------|-------------|------------|
| `x-api-key` | Header | string | API authentication key | Required header |

## Current Fake Server Issues
- ❌ Uses `personaKey` instead of `persona_id` + `replica_id`
- ❌ Missing all timeout parameters
- ❌ No validation for parameter types
- ❌ Wrong authentication header handling
- ❌ Missing optional parameter support