Create a session summary
curl --request POST \
--url https://api.webless.ai/api/v1/session-summaries \
--header 'Content-Type: application/json' \
--data '
{
"session_id": "a1c2d3e4-1111-2222-3333-444455556666",
"company": "YOUR_COMPANY"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({session_id: 'a1c2d3e4-1111-2222-3333-444455556666', company: 'YOUR_COMPANY'})
};
fetch('https://api.webless.ai/api/v1/session-summaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webless.ai/api/v1/session-summaries"
payload = {
"session_id": "a1c2d3e4-1111-2222-3333-444455556666",
"company": "YOUR_COMPANY"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"session_id": "<string>",
"status": "generated",
"category": "<string>",
"topics": [
{
"title": "<string>",
"narrative": "<string>"
}
],
"resources": [
{
"title": "<string>",
"link": "<string>"
}
],
"cta": {
"text": "<string>",
"link": "<string>"
},
"suggested_subject": "<string>",
"rendered_body": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}Session API
Create session summary
Generates a structured recap of a user’s session for follow-up emails or internal dashboards.
POST
/
api
/
v1
/
session-summaries
Create a session summary
curl --request POST \
--url https://api.webless.ai/api/v1/session-summaries \
--header 'Content-Type: application/json' \
--data '
{
"session_id": "a1c2d3e4-1111-2222-3333-444455556666",
"company": "YOUR_COMPANY"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({session_id: 'a1c2d3e4-1111-2222-3333-444455556666', company: 'YOUR_COMPANY'})
};
fetch('https://api.webless.ai/api/v1/session-summaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webless.ai/api/v1/session-summaries"
payload = {
"session_id": "a1c2d3e4-1111-2222-3333-444455556666",
"company": "YOUR_COMPANY"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"session_id": "<string>",
"status": "generated",
"category": "<string>",
"topics": [
{
"title": "<string>",
"narrative": "<string>"
}
],
"resources": [
{
"title": "<string>",
"link": "<string>"
}
],
"cta": {
"text": "<string>",
"link": "<string>"
},
"suggested_subject": "<string>",
"rendered_body": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}This endpoint returns a generated summary directly unless the company has a
session summary webhook configured.
Was this page helpful?