POST
/
v2
/
conversations
curl --request POST \
  --url https://tavusapi.com/v2/conversations \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "replica_id": "r79e1c033f",
  "persona_id": "p5317866",
  "callback_url": "https://yourwebsite.com/webhook",
  "conversation_name": "A Meeting with Hassaan",
  "conversational_context": "You are about to talk to Hassaan, one of the cofounders of Tavus. He loves to talk about AI, startups, and racing cars.",
  "custom_greeting": "Hey there Hassaan, long time no see!",
  "properties": {
    "max_call_duration": 3600,
    "participant_left_timeout": 60,
    "participant_absent_timeout": 300,
    "enable_recording": true,
    "enable_transcription": true,
    "apply_greenscreen": true,
    "language": "english",
    "recording_s3_bucket_name": "conversation-recordings",
    "recording_s3_bucket_region": "us-east-1",
    "aws_assume_role_arn": ""
  }
}'
{
  "conversation_id": "c123456",
  "conversation_name": "A Meeting with Hassaan",
  "status": "active",
  "conversation_url": "https://tavus.daily.co/c123456",
  "replica_id": "r79e1c033f",
  "persona_id": "p5317866",
  "created_at": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
replica_id
string

The unique identifier for the replica that will join the conversation.

persona_id
string

The unique identifier for the persona that the replica will use in the conversation.

callback_url
string

A url that will receive webhooks with updates regarding the conversation state.

conversation_name
string

A name for the conversation.

conversational_context
string

Optional context that will be appended to any context provided in the persona, if one is provided.

custom_greeting
string

An optional custom greeting that the replica will give once a participant joines the conversation.

properties
object

Optional properties that can be used to customize the conversation.

Response

200 - application/json
conversation_id
string

A unique identifier for the conversation.

conversation_name
string

The name of the conversation.

status
string

The status of the conversation. Possible values: active, ended.

conversation_url
string

A direct link to join the conversation. This link can be used to join the conversation directly or can be embedded in a website.

replica_id
string

A unique identifier for the replica used to create this conversation.

persona_id
string

A unique identifier for the persona used to create this conversation.

created_at
string

The date and time the conversation was created.