User API
Voice
In-app voice calls and available voices
GET
/voice/providersVoice engines this app has credentials for (none listed means no engine is configured) and their voices. Portal callers get a reduced view: no reason text and no customer deployment model name.
Responses
200Success
ok reqenum
truedefaultProviderIdenum
vapigoogle-liveazure-liveproviders reqobject[]
id reqenum
vapigoogle-liveazure-livename reqstring
modelstring
enabled reqboolean
available reqboolean
reasonstring
defaultVoiceId reqstring
voices reqobject[]
voiceId reqstring
name reqstring
gender reqenum
malefemaleotherdescriptionstring
Request
curl 'https://app.openassistant.us/api/voice/providers' \
-H "Authorization: Bearer ak_live_..."Response
{
"ok": true,
"providers": [
{
"id": "vapi",
"name": "string",
"enabled": true,
"available": true,
"defaultVoiceId": "string",
"voices": [
{
"voiceId": null,
"name": null,
"gender": null
}
]
}
]
}POST
/voice/live/sessionCreate a scoped browser voice session
Request body
assistantIdstring
chatIdstring | null
taskIdstring | null
onBehalfOfstring
previewobject
provider reqenum
google-liveazure-livevoiceId reqstring
text reqstring
Responses
200Success
provider reqenum
vapigoogle-liveazure-live409Voice unavailable or invalid context
status reqinteger
error_codestring
error reqstring
429Voice unavailable or invalid context
status reqinteger
error_codestring
error reqstring
Request
curl 'https://app.openassistant.us/api/voice/live/session' \
-X POST \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"assistantId": "string",
"chatId": "string",
"taskId": "string",
"onBehalfOf": "string"
}'Response
{
"provider": "vapi"
}POST
/voice/live/cancelCancel an owned browser session before gateway connection
Request body
sessionId reqstring
Responses
200Success
ok reqenum
truecancelled reqenum
true404Voice unavailable or invalid context
status reqinteger
error_codestring
error reqstring
Request
curl 'https://app.openassistant.us/api/voice/live/cancel' \
-X POST \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{
"sessionId": "string"
}'Response
{
"ok": true,
"cancelled": true
}