Skip to main content
POST
/
api
/
ai
/
rtSave
/
conversation
Save realtime conversation
curl --request POST \
  --url https://pria.praxislxp.com/api/ai/rtSave/conversation \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "sessionId": "<string>",
  "inputs": [
    "<string>"
  ],
  "outputs": [
    "<string>"
  ],
  "tools": [
    {
      "name": "<string>",
      "success": true,
      "responseDurationMs": 123
    }
  ],
  "usage": {
    "input_tokens": 123,
    "output_tokens": 123
  }
}
'
{
  "success": true,
  "historyId": "<string>"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
sessionId
string

Realtime session ID

inputs
string[]

User inputs from the session

outputs
string[]

AI outputs from the session

tools
object[]

Tools used during the session

usage
object

Token usage for the session

Response

Conversation saved successfully

success
boolean
historyId
string

ID of the saved history record