live.connectLive
GET
/v1/chats/{chatId}/live
const url = 'https://example.com/v1/chats/example/live?turnDetection=server';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/chats/example/live?turnDetection=server' \ --header 'Authorization: Bearer <token>'Opens the Live WebSocket of a live Chat. Each thing the person says starts a Turn, and the Bot answers with sound and text. Turns use the shared execution engine. Sound stays on the open connection. A browser must connect from the public origin.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”chatId
required
string
Query Parameters
Section titled “Query Parameters”voice
string
inputFormat
string
outputFormat
string
turnDetection
string
organization
string
Responses
Section titled “Responses”ChatModelInvalid | OrganizationRequired
AuthenticationRequired
Media typeapplication/json
object
_tag
required
string
Example
{ "_tag": "AuthenticationRequired"}@nmnmcc/ability/Authorizer/Forbidden | MembershipRequired | ForbiddenOrigin
ChatNotFound
Media typeapplication/json
object
_tag
required
string
chat
required
string
Example
{ "_tag": "ChatNotFound"}ChatConflict | LiveUnavailable | @nmnmcc/ability/Authorizer/Pending
RateLimited
Media typeapplication/json
object
_tag
required
string
retryAfterSeconds
required
integer
Example
{ "_tag": "RateLimited"}ChatStorageUnavailable | ChatExecutionUnavailable | AuthenticationUnavailable | RequestFailed