Skip to main content
POST
/
api
/
user
/
summarizeHistory
Generate an AI summary title for a history record
curl --request POST \
  --url https://pria.praxislxp.com/api/user/summarizeHistory \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "id": "688b024f7db6fe6e921399e3"
}
'
{
  "success": true,
  "message": "Summary generated",
  "data": "How to deploy a Node.js application to AWS with Docker"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
id
string
required

ObjectId of the history record to summarize

Example:

"688b024f7db6fe6e921399e3"

Response

Summary successfully generated

success
boolean
Example:

true

message
string
Example:

"Summary generated"

data
string

AI-generated title summarizing the conversation in 200 chars or less

Example:

"How to deploy a Node.js application to AWS with Docker"