KumkuatKumkuat
API reference › Voices

Enable or disable a voice

PUT/api/v1/voices/{persona_id}

PUT/api/v1/voices/{persona_id}

Enable or disable a voice

Body `{"enabled": true|false}. For an executive's voice this is the same<br/>toggle as the executives page: enabling tunes the persona from the executive's<br/>statements when it has not been tuned yet, disabling keeps the tuned persona.<br/>For any other persona it sets include_in_voice_list`.

PARAMETERS
persona_idpath · stringREQUIRED
Persona id of the voice, as listed by GET /api/v1/voices.
e.g. string
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "enabled": true
}
In the full reference
REQUEST
curl -X PUT "https://gateway.kumkuat.ai/api/v1/voices/string" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "enabled": true
}'
RESPONSE
200OK
{
  "enabled": true,
  "kind": "executive",
  "name": "Jane Doe",
  "persona_id": "d4e9b2a1-6c3f-4b8e-9f21-0a7c5e3d1b60",
  "tuned": true
}
Try it — sign in first
Runs on a sandbox key: 2000 requests a month. Your real key is for production.