Security enhancements to IP Vault and new Gemini 3.1 Flash Live STS model for Convo mode
curl --request POST \
--url https://pria.praxislxp.com/api/user/histories \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"limit": 5,
"course_id": 1750532703472,
"search": "deploy",
"tools": false
}
'{
"success": true,
"data": [
{
"id": "688b024f7db6fe6e921399e3",
"created": "2025-07-01T12:00:00.000Z",
"credits": 1,
"usage": 150,
"discount": 0,
"institution": "60d5ec49f1b2c80015a4d1a1",
"user": "60d5ec49f1b2c80015a4d1a2",
"favorite": false,
"forgotten": false,
"role_id": "60d5ec49f1b2c80015a4d1a3",
"role_name": "Student",
"thumbUpDown": "up",
"conversation_model": "gpt-4o",
"success": true,
"in": {
"input": "How are you?"
},
"out": {
"outputs": [
"I am doing wonderful, thank you for asking..."
]
},
"assistant": {
"_id": "60d5ec49f1b2c80015a4d1a4",
"name": "My Assistant",
"liked_count": 5,
"picture_url": "https://example.com/avatar.png"
}
}
]
}Fetches conversation history records based on specified filters. Results are sorted newest-first by the database, then reversed to oldest-first before returning. Long strings in inputs/outputs are trimmed to 200 chars. Tool responses are truncated to 80 chars unless tools=true.
curl --request POST \
--url https://pria.praxislxp.com/api/user/histories \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"limit": 5,
"course_id": 1750532703472,
"search": "deploy",
"tools": false
}
'{
"success": true,
"data": [
{
"id": "688b024f7db6fe6e921399e3",
"created": "2025-07-01T12:00:00.000Z",
"credits": 1,
"usage": 150,
"discount": 0,
"institution": "60d5ec49f1b2c80015a4d1a1",
"user": "60d5ec49f1b2c80015a4d1a2",
"favorite": false,
"forgotten": false,
"role_id": "60d5ec49f1b2c80015a4d1a3",
"role_name": "Student",
"thumbUpDown": "up",
"conversation_model": "gpt-4o",
"success": true,
"in": {
"input": "How are you?"
},
"out": {
"outputs": [
"I am doing wonderful, thank you for asking..."
]
},
"assistant": {
"_id": "60d5ec49f1b2c80015a4d1a4",
"name": "My Assistant",
"liked_count": 5,
"picture_url": "https://example.com/avatar.png"
}
}
]
}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.
JWT token passed in x-access-token header
Maximum number of records to return (default 100)
5
Institution ObjectId. If omitted, uses the current user's institution.
Course identifier to filter by. When 0, matches records with course_id 0 or null.
1750532703472
Epoch timestamp in ms. Returns records created before this date.
1723019070274
Epoch timestamp in ms. Returns records created after this date.
1723019070274
The ObjectId of a specific history record to retrieve
"688b024f7db6fe6e921399e3"
Free-text search string. Matches against input, inputs, output, and outputs fields (case-insensitive regex).
"how to deploy"
When true, returns full tool response data. When false or omitted, tool responses longer than 80 chars are truncated.
false
When true, search across all institutions the user is enrolled in PLUS the user's personal account (histories with no institution). Overrides the institution field if both are set, and causes course_id to be ignored (cross-twin scope always crosses courses). Populates institution as an object ({_id, name, ainame, picture}) for institutional records, or as {personal: true} for personal-account records.
Successfully retrieved conversation histories
Indicates if the request was successful
Array of history records sorted oldest-first (dialogs are reversed before returning)
Show child attributes
Only returned when allInstitutions: true. Total number of records matching the search (not capped by limit). Equals total when no search term is provided.
Only returned when allInstitutions: true. Total number of records in the searchable scope (ignores the search term; still respects allInstitutions, course_id, before, after, and status/forgotten filters).
Error message when success is false
Error object when success is false
Was this page helpful?