Conversation summaries
POST /summary generates a short title for a conversation — useful for naming
chat threads in a sidebar.
Request
POST /summary
| Field | Type | Required | Description |
|---|---|---|---|
pastMessages | Message[] | ✅ | The conversation to title, oldest first. |
A Message is { "content": string, "role": "user" | "assistant" }.
Response
| Field | Type | Description |
|---|---|---|
title | string | A concise generated title. |
Example
curl -X POST "$API_URL/summary" \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"pastMessages": [
{ "role": "user", "content": "What is our refund policy?" },
{ "role": "assistant", "content": "Refunds are available within 30 days." }
]
}'{ "title": "Refund policy window" }