Create and manage persistent chat conversation threads. Requires a Pro or Team plan.
/api/conversationsList all conversations for the authenticated user, ordered by most recently updated.
curl -H "Authorization: Bearer <token>" \
"http://localhost:3000/api/conversations"[
{
"id": "uuid",
"title": "LLM Transformer Research",
"userId": "user-uuid",
"createdAt": "2024-04-01T10:00:00.000Z",
"updatedAt": "2024-04-01T11:30:00.000Z"
}
]/api/conversationsCreate a new conversation thread. The title is optional and defaults to 'New Conversation'.
| Name | Type | Description |
|---|---|---|
title | string | Optional display title for the conversation. |
curl -X POST "http://localhost:3000/api/conversations" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"title":"LLM Research"}'{
"id": "new-uuid",
"title": "LLM Research",
"userId": "user-uuid",
"createdAt": "2024-04-01T12:00:00.000Z",
"updatedAt": "2024-04-01T12:00:00.000Z"
}/api/conversations/:idRetrieve a single conversation and its full message history.
curl -H "Authorization: Bearer <token>" \
"http://localhost:3000/api/conversations/uuid"{
"id": "uuid",
"title": "LLM Research",
"messages": [
{ "role": "user", "content": "What do my saved links say about transformers?" },
{ "role": "assistant", "content": "Based on your archive...", "sources": [...] }
]
}/api/conversations/:id/messagesPersist messages to a conversation after a chat or synthesis stream completes. The dashboard calls this automatically — use it if you're building on top of the API.
| Name | Type | Description |
|---|---|---|
messagesrequired | Message[] | Array of message objects with role ('user' | 'assistant'), content, and optional sources array. |
curl -X POST "http://localhost:3000/api/conversations/uuid/messages" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"What is RAG?"},{"role":"assistant","content":"RAG stands for...","sources":[]}]}'{ "success": true }/api/conversations/:idPermanently delete a conversation and all its messages.
curl -X DELETE "http://localhost:3000/api/conversations/uuid" \
-H "Authorization: Bearer <token>"{ "success": true }