POST/api/v1/voices
Add a voice
`{"executive": "<name>"} materialises an executive named on the workspace's<br/>documents as a tuned voice persona (one model call on first creation; an existing<br/>voice is re-enabled). {"persona_id": "<id>"}` offers an existing persona as a<br/>voice. Answers 201 with the voice.
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"executive": "Jane Doe"
}
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/voices" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"executive": "Jane Doe"
}'
import requests
r = requests.post("https://gateway.kumkuat.ai/api/v1/voices", headers={"X-API-Key": "YOUR_KEY"}, json={
"executive": "Jane Doe"
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/voices", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"executive": "Jane Doe"
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
201Created
{
"created": true,
"enabled": true,
"kind": "executive",
"name": "Jane Doe",
"persona_id": "d4e9b2a1-6c3f-4b8e-9f21-0a7c5e3d1b60",
"tuned": true
}
