Overview

The Conversations API provides local SQLite-backed persistence for chat threads. It mirrors the legacy Next.js /api/v1/conversations layer and supports branching via fork and reply endpoints. All conversation objects are scoped to the authenticated user.

Base URL

For local development:

Authentication

All requests require a valid bearer token in the Authorization header. See Authentication for details.

Conversation object

Message object

Endpoints

List conversations

Query parameters

Response

Create conversation

Request body

Response

Get conversation

Response

List messages

Response

Create message

Request body

Response

List replies

Response

Fork conversation

Request body

Response

Error codes