curl --request POST \
--url https://pria.praxislxp.com/api/ai/personal/qanda \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 1750660464754,
"requestArgs": {
"userISODate": "2025-06-23T06:34:24.754Z",
"userTimezone": "Indian/Mauritius",
"userGPSCoordinates": {
"accuracy": 21126.837004634195,
"latitude": -21.282816,
"longitude": 55.4139648,
"altitude": null,
"altitudeAccuracy": null,
"heading": null,
"speed": null
},
"socketId": "DhXE7OVjCtfUmDFTAAAB",
"selectedCourse": {
"course_id": 1750532703472,
"course_name": "SwaggerAnnotation Generator Saturday, Jun 21, 2025",
"assistant": {
"_id": "6856fa89cbafcff8d98680f5",
"name": "SwaggerAnnotation Generator",
"picture_url": ""
},
"history_count": 21,
"last_dialogue_date": "2025-06-23T06:34:12.779Z"
},
"ragOnly": false
},
"inputs": [
"hi"
],
"outputs": []
}'
{
"success": true,
"streamingFailed": true,
"outputs": [
"Hello! 👋 I'm the SwaggerAnnotation Generator assistant..."
],
"usage": 20287,
"credits": 1244,
"creditsUsed": 7083,
"totalLength": 20287,
"totalCredits": 3,
"query_duration_ms": 11088,
"model": "us.anthropic.claude-sonnet-4-20250514-v1:0"
}
Handles conversational AI interactions with context awareness including user location, timezone, and course selection (conversation)
curl --request POST \
--url https://pria.praxislxp.com/api/ai/personal/qanda \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 1750660464754,
"requestArgs": {
"userISODate": "2025-06-23T06:34:24.754Z",
"userTimezone": "Indian/Mauritius",
"userGPSCoordinates": {
"accuracy": 21126.837004634195,
"latitude": -21.282816,
"longitude": 55.4139648,
"altitude": null,
"altitudeAccuracy": null,
"heading": null,
"speed": null
},
"socketId": "DhXE7OVjCtfUmDFTAAAB",
"selectedCourse": {
"course_id": 1750532703472,
"course_name": "SwaggerAnnotation Generator Saturday, Jun 21, 2025",
"assistant": {
"_id": "6856fa89cbafcff8d98680f5",
"name": "SwaggerAnnotation Generator",
"picture_url": ""
},
"history_count": 21,
"last_dialogue_date": "2025-06-23T06:34:12.779Z"
},
"ragOnly": false
},
"inputs": [
"hi"
],
"outputs": []
}'
{
"success": true,
"streamingFailed": true,
"outputs": [
"Hello! 👋 I'm the SwaggerAnnotation Generator assistant..."
],
"usage": 20287,
"credits": 1244,
"creditsUsed": 7083,
"totalLength": 20287,
"totalCredits": 3,
"query_duration_ms": 11088,
"model": "us.anthropic.claude-sonnet-4-20250514-v1:0"
}
JWT token passed in x-access-token header
Successful AI response with conversation data
The response is of type object
.
Was this page helpful?