curl --request GET \
--url https://app.thinnest.ai/api/v1/agents/{id}/byok-voice \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"provider": {
"id": "elevenlabs",
"label": "ElevenLabs"
},
"model": "eleven_flash_v2_5",
"voice": "EXAVITQu4vr4xnSDxMaL",
"speed": null,
"volume": null,
"emotion": null,
"agentModel": null,
"pronunciationDictId": null,
"stale": null
}Get Agent BYOK Voice
On a workspace that brings its own keys: the voice this agent speaks with on your own voice provider. voice is null for the provider’s default voice. A choice belongs to the provider it was made on; after you switch your voice key to another provider, stale holds the old choice and calls speak the new provider’s default until you choose again. On a Cartesia key the response also holds how the voice sounds: speed, volume, emotion, agentModel (this agent’s own Sonic model; model is always your key’s) and pronunciationDictId, each null while unset. Refused with 409 when the workspace is not using its own voice key (it brings no keys, or only its language model), or when this agent is set to byok: "off" (it then speaks in our voices).
curl --request GET \
--url https://app.thinnest.ai/api/v1/agents/{id}/byok-voice \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"provider": {
"id": "elevenlabs",
"label": "ElevenLabs"
},
"model": "eleven_flash_v2_5",
"voice": "EXAVITQu4vr4xnSDxMaL",
"speed": null,
"volume": null,
"emotion": null,
"agentModel": null,
"pronunciationDictId": null,
"stale": null
}Authorizations
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. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Path Parameters
Response
The agent's voice on your provider.