Skip to main content
POST
/
api
/
ai
/
rtProxy
/
deepgram
/
sttSession
Mint a Deepgram streaming STT session
curl --request POST \
  --url https://pria.praxislxp.com/api/ai/rtProxy/deepgram/sttSession \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "requestArgs": {
    "selectedCourse": {
      "course": {
        "title": "<string>"
      },
      "assistant": {
        "name": "<string>"
      }
    },
    "assistantName": "<string>",
    "courseTitle": "<string>",
    "keyterms": [
      "<string>"
    ]
  }
}
'
{
  "provider": "deepgram",
  "access_token": "<string>",
  "expires_in": 123,
  "wss_url": "wss://api.deepgram.com/v1/listen",
  "model": "<string>",
  "eot_threshold": 123,
  "eot_timeout_ms": 123,
  "encoding": "linear16",
  "sample_rate": 16000,
  "keyterms": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json

All fields optional. The endpoint only mines requestArgs for keyterm hints — anything else is ignored.

requestArgs
object

Realtime context echoed from the client. Used to derive Deepgram keyterm hints (assistant name, conversation title, explicit keyterms[]).

Response

STT session minted.

provider
enum<string>
Available options:
deepgram
access_token
string

Short-lived Deepgram bearer token. The browser passes this via the WebSocket subprotocol when opening the WSS stream.

expires_in
number

Token TTL in seconds. 0 in dev raw-key mode.

wss_url
string

Deepgram listen WSS URL the client should connect to.

Example:

"wss://api.deepgram.com/v1/listen"

model
string

Deepgram STT model in use (institution-tuned).

eot_threshold
number

End-of-turn confidence threshold.

eot_timeout_ms
number

End-of-turn timeout in ms.

encoding
enum<string>

Fixed PCM encoding the client AudioWorklet emits.

Available options:
linear16
sample_rate
enum<number>

Fixed sample rate (16 kHz mono int16).

Available options:
16000
keyterms
string[]

Resolved keyterm list — institution name/ainame plus the derived/explicit terms.