> ## Documentation Index
> Fetch the complete documentation index at: https://ionet-cca8037f-confidential-compute.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> The R2R Conversations API enables threaded, context-aware exchanges between users or AI agents. It offers endpoints to create, manage, and update conversations and messages, supporting branching dialogue, metadata attachment, and message history tracking.

A **Conversation** in R2R represents a **threaded exchange of messages** that can **branch into multiple paths**, allowing for dynamic, structured dialogue management. Conversations help maintain **context**, preserve **message history**, and support **branching discussions** for more flexible interactions across users, agents, or systems.

They form the foundation for managing dialogue flows and conversational AI interactions within R2R.

### Key Capabilities

Conversations in R2R provide:

* **Threaded message management** for organized discussions.
* **Message editing** with full history preservation for version tracking.
* **Metadata attachment** to enrich messages with contextual details.
* **Context maintenance** across dialogue turns and branches.

## API Endpoints

| Method | Endpoint                                                                                     | Description                                            |
| ------ | -------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| POST   | [/conversations](/reference/rag/conversations/create-a-new-conversation)                     | Create a new conversation.                             |
| GET    | [/conversations](/reference/rag/conversations/list-conversations)                            | List conversations with pagination.                    |
| GET    | [/conversations/{id}](/reference/rag/conversations/get-conversation-details)                 | Retrieve details of a specific conversation.           |
| POST   | [/conversations/{id}](/reference/rag/conversations/update-conversation)                      | Update an existing conversation.                       |
| DELETE | [/conversations/{id}](/reference/rag/conversations/delete-a-conversation)                    | Delete a conversation.                                 |
| POST   | [/conversations/{id}/messages](/reference/rag/conversations/add-a-message-to-a-conversation) | Add a new message to a conversation.                   |
| POST   | [/conversations/{id}/messages/{message_id}](/reference/rag/conversations/update-a-message)   | Update the content or metadata of an existing message. |
