v4
latestOpenAPI 3.1.02026-08-086635375.7 KBPersonas
create persona
Create a new persona
post/v1/personas
Request body
Example request
{
"name": "Cara",
"avatarId": "071b0286-4cce-4808-bee2-e642f1062de3",
"avatarModel": "cara-4",
"voiceId": "de23e340-1416-4dd8-977d-065a7ca11697",
"llmId": "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
"systemPrompt": "You are a helpful assistant",
"initialMessage": "Hi there! I'm excited to chat with you today.",
"voiceDetectionOptions": {
"endOfSpeechSensitivity": 0.5,
"silenceBeforeSkipTurnSeconds": 5,
"silenceBeforeSessionEndSeconds": 60,
"silenceBeforeAutoEndTurnSeconds": 5,
"speechEnhancementLevel": 0.8
},
"languageCode": "en",
"voiceGenerationOptions": {
"stability": 0.5,
"speed": 1
},
"toolIds": [
"tool-id-1",
"tool-id-2"
]
}Response
Successfully created persona
Example response
{
"voiceDetectionOptions": {
"endOfSpeechSensitivity": 0.5,
"silenceBeforeSkipTurnSeconds": 5,
"silenceBeforeSessionEndSeconds": 60,
"silenceBeforeAutoEndTurnSeconds": 5,
"speechEnhancementLevel": 0.8
},
"voiceGenerationOptions": {
"stability": 0.5,
"speed": 1
}
}