curl --request GET \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"voice": "openai-tts/nova",
"active": true,
"default": {
"ref": "openai-tts/alloy",
"name": "Alloy",
"source": "org_language"
},
"voices": [
{
"ref": "openai-tts/alloy",
"model_id": "openai-tts",
"id": "alloy",
"name": "Alloy",
"languages": [
"fr-FR"
]
},
{
"ref": "openai-tts/nova",
"model_id": "openai-tts",
"id": "nova",
"name": "Nova",
"languages": [
"fr-FR"
]
}
]
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Read the voice the signed-in member chose, and the voices offered
The voice the member chose for voice sessions, kept on the server so that
it follows them on every device. A session reads, in order: the voice
asked on the session itself (the voice query parameter of the voice
WebSocket, a one-off override for that session, which the voice pickers
do not send), the member’s choice, the agent’s voice, the
organization’s default for the language, its fallback voice, the
platform’s voice. A voice that is no longer offered, or that does not
speak the session’s language, is skipped.
With agent_id, default takes that agent’s voice into account (when
the caller may read the agent).
curl --request GET \
--url https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:agent-factory/webhooks/v1/voice/preference"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"voice": "openai-tts/nova",
"active": true,
"default": {
"ref": "openai-tts/alloy",
"name": "Alloy",
"source": "org_language"
},
"voices": [
{
"ref": "openai-tts/alloy",
"model_id": "openai-tts",
"id": "alloy",
"name": "Alloy",
"languages": [
"fr-FR"
]
},
{
"ref": "openai-tts/nova",
"model_id": "openai-tts",
"id": "nova",
"name": "Nova",
"languages": [
"fr-FR"
]
}
]
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Query Parameters
Response
The member's choice and the voices offered.
The voice a session reads without the member's choice. A session also skips a catalog voice whose provider is not configured, which this answer does not check.
The voices the organization offers in language, as GET /v1/voice/availability?voices=true lists them.
Was this page helpful?