curl --request PUT \
--url https://app.thinnest.ai/api/v1/agents/{id}/byok-voice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"voice": "EXAVITQu4vr4xnSDxMaL"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({voice: 'EXAVITQu4vr4xnSDxMaL'})
};
fetch('https://app.thinnest.ai/api/v1/agents/{id}/byok-voice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/agents/{id}/byok-voice"
payload = { "voice": "EXAVITQu4vr4xnSDxMaL" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"voice": "EXAVITQu4vr4xnSDxMaL",
"provider": "elevenlabs"
}Set Agent BYOK Voice
Chooses the voice this agent speaks with on your own voice provider: an id from List BYOK Voices, checked against the provider’s list for your key, or null for the provider’s default. The agent needs a voice channel first. A build key may do this.
curl --request PUT \
--url https://app.thinnest.ai/api/v1/agents/{id}/byok-voice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"voice": "EXAVITQu4vr4xnSDxMaL"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({voice: 'EXAVITQu4vr4xnSDxMaL'})
};
fetch('https://app.thinnest.ai/api/v1/agents/{id}/byok-voice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/agents/{id}/byok-voice"
payload = { "voice": "EXAVITQu4vr4xnSDxMaL" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"voice": "EXAVITQu4vr4xnSDxMaL",
"provider": "elevenlabs"
}Authorizations
Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Path Parameters
The agent's id (ag_…), as List Agents returns it. Another workspace's agent is the same 404 as one that never existed.
Body
A voice id from List BYOK Voices, or null for the provider's default.
160