Skip to Content
Conversation Summaries

Conversation summaries

POST /summary generates a short title for a conversation — useful for naming chat threads in a sidebar.

Request

POST /summary

FieldTypeRequiredDescription
pastMessagesMessage[]The conversation to title, oldest first.

A Message is { "content": string, "role": "user" | "assistant" }.

Response

FieldTypeDescription
titlestringA 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" }