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"
}
'import requests
url = "https://pria.praxislxp.com/api/user/summarizeHistory"
payload = { "id": "688b024f7db6fe6e921399e3" }
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '688b024f7db6fe6e921399e3'})
};
fetch('https://pria.praxislxp.com/api/user/summarizeHistory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/user/summarizeHistory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '688b024f7db6fe6e921399e3'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/summarizeHistory"
payload := strings.NewReader("{\n \"id\": \"688b024f7db6fe6e921399e3\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pria.praxislxp.com/api/user/summarizeHistory")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"688b024f7db6fe6e921399e3\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/summarizeHistory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"688b024f7db6fe6e921399e3\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Summary generated",
"data": "How to deploy a Node.js application to AWS with Docker"
}{
"success": false,
"message": "Invalid parameter. You must supply a valid id or course_id.",
"error": {}
}{
"success": false,
"message": "Authentication Required!"
}{
"success": false,
"message": "You are not a member of this institution"
}Generate an AI summary title for a history record or conversation
Uses AI to generate a concise title that describes the benefit or outcome of the conversation. The AI provider is determined by the institution’s summaryModel configuration. When ‘id’ is supplied, reads a single history record (input, inputs, output, outputs, code) and returns up to 200 chars. When ‘course_id’ is supplied, summarizes the first 2 + last 3 dialogues of the conversation within the resolved institution scope (all dialogues if ≤5 total) and returns up to 50 chars. course_id mode supports institution scoping (ObjectId / explicit null = personal / omitted = user.institution fallback); allInstitutions:true is rejected with 400.
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"
}
'import requests
url = "https://pria.praxislxp.com/api/user/summarizeHistory"
payload = { "id": "688b024f7db6fe6e921399e3" }
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '688b024f7db6fe6e921399e3'})
};
fetch('https://pria.praxislxp.com/api/user/summarizeHistory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/user/summarizeHistory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '688b024f7db6fe6e921399e3'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/summarizeHistory"
payload := strings.NewReader("{\n \"id\": \"688b024f7db6fe6e921399e3\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pria.praxislxp.com/api/user/summarizeHistory")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"688b024f7db6fe6e921399e3\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/summarizeHistory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"688b024f7db6fe6e921399e3\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Summary generated",
"data": "How to deploy a Node.js application to AWS with Docker"
}{
"success": false,
"message": "Invalid parameter. You must supply a valid id or course_id.",
"error": {}
}{
"success": false,
"message": "Authentication Required!"
}{
"success": false,
"message": "You are not a member of this institution"
}Authorizations
JWT token passed in x-access-token header
Body
Supply either 'id' to summarize a single history record (favorite), or 'course_id' to summarize a whole conversation. course_id mode supports institution scoping.
ObjectId of the history record to summarize. Single-record operations are not institution-scoped (_id is globally unique).
"688b024f7db6fe6e921399e3"
Conversation course_id to summarize (first 2 + last 3 dialogues; all if ≤5 total). course_id=0 covers the unassigned bucket (course_id 0/null/missing).
1712345678901
Institution scope (course_id mode only). Three-state: (1) valid ObjectId scopes to that twin (membership-checked — 403 if not active), (2) explicit null/empty scopes to personal/null history, (3) field omitted falls back to user.institution. Malformed ObjectId returns 400.
Was this page helpful?