Conversations

List, view, and delete chat conversations.

Conversations are automatically created when you use the /chat endpoint. Each conversation maintains chat history for follow-up questions.

List conversations

GET /api/v1/conversations

Returns all conversations, ordered by most recent.

Response (200: OK)

{
  "conversations": [
    {
      "id": "d4e5f6a7-b8c9-0123-def0-1234567890ab",
      "title": "What were the key revenue drivers...",
      "timestamp": "2025-03-15T14:30:00",
      "message_count": 4
    },
    {
      "id": "e5f6a7b8-c9d0-1234-ef01-234567890abc",
      "title": "Summarize the meeting notes",
      "timestamp": "2025-03-14T10:15:00",
      "message_count": 2
    }
  ]
}

Get conversation messages

GET /api/v1/conversations/{conversation_id}

Returns all messages in chronological order.

Response (200: OK)


Delete a conversation

DELETE /api/v1/conversations/{conversation_id}

Permanently deletes a conversation and all its messages.

Response (200: OK)


Example

Last updated