Skip to main content
POST
Create persona

Authorizations

X-API-Key
string
header
required

API key for authentication

Body

application/json
name
string
required

Human-readable persona name

Required string length: 1 - 200
Example:

"Friendly Customer"

voice_name
string
required

Coval voice name. Use GET /personas/voices to discover available voices and their supported language codes.

Example:

"aria"

language_code
string
required

BCP-47 language code for voice synthesis. Must be supported by the selected voice. Use GET /personas/voices to discover valid voice and language combinations.

Example:

"en-US"

persona_prompt
string | null

Instructions describing persona behavior and personality

Example:

"You are a friendly customer calling for support..."

background_sound
string | null

Built-in background sound id, or custom:<background_sound_id> for an active custom sound returned by GET /personas/background-sounds.

Maximum string length: 100
Pattern: ^(off|office|lounge|crowd|airport|bus|playground|doorbell|train-arrival|portable-air-conditioner|skatepark|small-dog-bark|cafe|ferry-and-announcement|heavy-rain|moderate-wind|newborn-baby-crying|office-with-alarm|street-with-sirens|construction-work|backchanneling|custom:[A-Za-z0-9_-]+)$
Example:

"office"

background_sound_volume
number<float> | null

Volume level for background sound (>= 0.0, no upper limit). Default is provider-controlled when omitted.

Required range: x >= 0
Example:

0.3

voice_volume
number<float> | null

Voice gain multiplier. 0.0 is silent, 1.0 is unchanged, and 2.0 is double volume.

Required range: 0 <= x <= 2
Example:

1.25

voice_speed
number<float> | null

Voice speed multiplier accepted and stored from 0.25 to 2.0. 1.0 is unchanged. The selected voice may enforce a narrower effective range or ignore speed changes.

Required range: 0.25 <= x <= 2
Example:

0.85

wait_seconds
number<float> | null

Response delay in seconds

Required range: 0.1 <= x <= 2
Example:

0.5

conversation_initiation
enum<string> | null

Who initiates the conversation

Available options:
speak_first,
wait_for_user
Example:

"speak_first"

multi_language_stt
boolean | null

Enable multilingual speech-to-text so callers speaking languages other than the primary language_code are still transcribed accurately.

Example:

true

hold_music_timeout_seconds
number<float> | null

Disconnect after this many seconds of no speech (5-300)

Required range: 5 <= x <= 300
situate_speaker
enum<string> | null

Persona placement preset.

  • speakerphone-easy: User speaking from a distance from the microphone
  • speakerphone-hard: User speaking from a distance from the microphone in an acoustically challenging environment.
Available options:
speakerphone-easy,
speakerphone-hard
tags
string[] | null

Tags to associate with this persona. Null or omitted creates the persona with no tags. Pass [] for an empty tag list.

Example:

Response

Persona created successfully

persona
object
required

Persona resource representation returned by API responses.