curl --request POST \
--url https://pria.praxislxp.com/api/user/favorites \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"institution": "60d5ec49f1b2c80015a4d1a1"
}
'{
"success": true,
"data": [
{
"id": "688b024f7db6fe6e921399e3",
"created": "2025-07-01T12:00:00.000Z",
"favorite": true,
"favorite_name": "Deployment Guide",
"in": {
"input": "How are you?"
},
"out": {
"outputs": [
"I am doing wonderful, thank you for asking..."
]
},
"assistant": {
"_id": "60d5ec49f1b2c80015a4d1a4",
"name": "My Assistant",
"liked_count": 5
}
}
]
}Retrieve user's favorite dialogues
Returns history records marked as favorites by the authenticated user. Uses the same HistoryRecord response shape as /histories. Results are trimmed (inputs/outputs to 200 chars, tool responses to 80 chars). Limited to 1000 records.
curl --request POST \
--url https://pria.praxislxp.com/api/user/favorites \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"institution": "60d5ec49f1b2c80015a4d1a1"
}
'{
"success": true,
"data": [
{
"id": "688b024f7db6fe6e921399e3",
"created": "2025-07-01T12:00:00.000Z",
"favorite": true,
"favorite_name": "Deployment Guide",
"in": {
"input": "How are you?"
},
"out": {
"outputs": [
"I am doing wonderful, thank you for asking..."
]
},
"assistant": {
"_id": "60d5ec49f1b2c80015a4d1a4",
"name": "My Assistant",
"liked_count": 5
}
}
]
}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
JWT token passed in x-access-token header
Body
Institution ObjectId. If omitted, uses the current user's institution.
Response
Successfully retrieved favorite history dialogues
Indicates if the request was successful
Array of favorited history records (max 1000). Inputs/outputs trimmed to 200 chars. Tool responses truncated to 80 chars.
Show child attributes
Show child attributes
Error message when success is false
Error object when success is false
Was this page helpful?