> ## Documentation Index
> Fetch the complete documentation index at: https://help.memoryplugin.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Conversation

> Retrieve a specific conversation with all its messages.

## Overview

Retrieve a specific conversation with all its messages. Use the `conversationId` from the list or search endpoints.

### Example

```bash theme={null}
curl "https://www.memoryplugin.com/api/chat-history/conversation?conversationId=abc-123" \
  -H "Authorization: Bearer YOUR_API_KEY"
```


## OpenAPI

````yaml GET /api/chat-history/conversation
openapi: 3.1.0
info:
  title: MemoryPlugin
  version: 1.0.0
  description: API for managing and querying user memories
servers:
  - url: https://www.memoryplugin.com
security: []
paths:
  /api/chat-history/conversation:
    get:
      summary: Get conversation
      description: Retrieve a specific conversation with all its messages.
      operationId: GetConversation
      parameters:
        - name: conversationId
          in: query
          required: true
          schema:
            type: string
          description: >-
            The internal conversation ID (returned from list or search
            endpoints).
      responses:
        '200':
          description: Conversation with messages
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationDetailResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Conversation not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ConversationDetailResponse:
      type: object
      properties:
        id:
          type: string
          description: Internal conversation ID.
        title:
          type: string
          description: Conversation title.
        messages:
          type: array
          items:
            type: object
            properties:
              message_index:
                type: integer
                description: Position in the conversation (0-indexed).
              sender:
                type: string
                enum:
                  - human
                  - assistant
                description: Who sent the message.
              text:
                type: string
                description: Message content.
              timestamp:
                type: string
                format: date-time
                description: When the message was sent.
        total:
          type: integer
          description: Total number of messages.
        platformConversationId:
          type: string
          description: The original platform conversation ID.
        sourceId:
          type: string
          description: Platform identifier.
        tokenCount:
          type: integer
          description: Total tokens in the conversation.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        text:
          type: string
        score:
          type: number
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````