Voices
The personas you can write as in content creation, including executives materialised from their own statements.
List voices
/api/v1/voicesEvery persona offered as a content-creation voice, plus executives that have been materialised as voices whether or not they are currently enabled.
Returns200 · object
totalintegerRequiredvoicesarray of objectRequired7 child fields
- nullable
categorystring enabledbooleanRequiredWhether the voice is offered in content creation.
- nullable
executivestringThe executive's name as it appears on documents; null for an ordinary persona.
- for example "executive"
kindstringRequiredexecutivefor a voice materialised from an executive's own statements, elsepersona. - for example "Jane Doe"
namestringRequired - for example "d4e9b2a1-6c3f-4b8e-9f21-0a7c5e3d1b60"
persona_idstringRequired tunedbooleanRequiredWhether a voice profile has been analysed from writing samples or statements.
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/voices \
-H 'X-API-Key: <api key>'Add a voice
/api/v1/voices{"executive": "<name>"} materialises an executive named on the workspace's documents as a tuned voice persona (one model call on first creation; an existing voice is re-enabled). {"persona_id": "<id>"} offers an existing persona as a voice. Answers 201 with the voice.
Bodyapplication/json · required
- nullable · for example "Jane Doe"
executivestringMaterialise this executive, as named on the workspace's documents, as a tuned voice. Idempotent: an existing voice is re-enabled.
- nullable
persona_idstringOffer an existing persona as a voice instead. Send exactly one of executive or persona_id.
Returns201 · object
- nullable
categorystring createdbooleanRequiredTrue when a new persona was created for the executive.
enabledbooleanRequiredWhether the voice is offered in content creation.
- nullable
executivestringThe executive's name as it appears on documents; null for an ordinary persona.
- for example "executive"
kindstringRequiredexecutivefor a voice materialised from an executive's own statements, elsepersona. - for example "Jane Doe"
namestringRequired - for example "d4e9b2a1-6c3f-4b8e-9f21-0a7c5e3d1b60"
persona_idstringRequired tunedbooleanRequiredWhether a voice profile has been analysed from writing samples or statements.
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/voices \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"executive":"Jane Doe","persona_id":"string"}'Get a voice
/api/v1/voices/{persona_id}One voice by its persona id. 404 when the persona is not a voice in this workspace.
Path parameters
persona_idstringRequiredPersona id of the voice, as listed by GET /api/v1/voices.
Returns200 · object
- nullable
categorystring enabledbooleanRequiredWhether the voice is offered in content creation.
- nullable
executivestringThe executive's name as it appears on documents; null for an ordinary persona.
- for example "executive"
kindstringRequiredexecutivefor a voice materialised from an executive's own statements, elsepersona. - for example "Jane Doe"
namestringRequired - for example "d4e9b2a1-6c3f-4b8e-9f21-0a7c5e3d1b60"
persona_idstringRequired tunedbooleanRequiredWhether a voice profile has been analysed from writing samples or statements.
Other responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/voices/{persona_id}' \
-H 'X-API-Key: <api key>'Enable or disable a voice
/api/v1/voices/{persona_id}Body {"enabled": true|false}. For an executive's voice this is the same toggle as the executives page: enabling tunes the persona from the executive's statements when it has not been tuned yet, disabling keeps the tuned persona. For any other persona it sets include_in_voice_list.
Path parameters
persona_idstringRequiredPersona id of the voice, as listed by GET /api/v1/voices.
Bodyapplication/json · required
enabledbooleanRequiredTrue offers the voice in content creation; false withdraws it but keeps the persona and its tuning.
Returns200 · object
- nullable
categorystring enabledbooleanRequiredWhether the voice is offered in content creation.
- nullable
executivestringThe executive's name as it appears on documents; null for an ordinary persona.
- for example "executive"
kindstringRequiredexecutivefor a voice materialised from an executive's own statements, elsepersona. - for example "Jane Doe"
namestringRequired - for example "d4e9b2a1-6c3f-4b8e-9f21-0a7c5e3d1b60"
persona_idstringRequired tunedbooleanRequiredWhether a voice profile has been analysed from writing samples or statements.
Other responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/voices/{persona_id}' \
-X PUT \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"enabled":true}'