Skip to main content
POST
/
api
/
ai
/
rtProxy
/
rtSession
Create realtime AI session
curl --request POST \
  --url https://pria.praxislxp.com/api/ai/rtProxy/rtSession \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "institutionId": "<string>",
  "model": "gpt-4o-realtime-preview",
  "voice": "alloy"
}
'
{
  "success": true,
  "sessionId": "<string>",
  "ephemeralKey": "<string>",
  "model": "<string>"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
institutionId
string

Institution ID for the realtime session

model
string

AI model to use for realtime

Example:

"gpt-4o-realtime-preview"

voice
string

Voice to use for TTS

Example:

"alloy"

Response

Realtime session created successfully

success
boolean
sessionId
string

Realtime session identifier

ephemeralKey
string

Ephemeral key for WebRTC connection

model
string

AI model being used