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

# Get Conversation Detail

> Get full conversation history with all messages.

Returns complete conversation transcript including:
- All user messages
- All agent responses
- Tool executions
- Timestamps
- Metadata

Use this for:
- Reviewing agent performance
- Debugging conversations
- Customer service audits
- Training data collection

Example response:
```json
{
  "conversation_id": "conv-123",
  "agent_id": "agent-456",
  "created_at": "2025-11-25T10:00:00Z",
  "updated_at": "2025-11-25T10:05:00Z",
  "messages": [
    {
      "role": "user",
      "content": "What is your refund policy?",
      "timestamp": "2025-11-25T10:00:00Z"
    },
    {
      "role": "assistant",
      "content": "Our refund policy...",
      "timestamp": "2025-11-25T10:00:02Z",
      "metadata": {"selected_tool": null, "execution_time_ms": 850}
    }
  ]
}
```



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json get /agents/{agent_id}/conversations/{conversation_id}
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /agents/{agent_id}/conversations/{conversation_id}:
    get:
      tags:
        - agent-sessions
      summary: Get Conversation Detail
      description: |-
        Get full conversation history with all messages.

        Returns complete conversation transcript including:
        - All user messages
        - All agent responses
        - Tool executions
        - Timestamps
        - Metadata

        Use this for:
        - Reviewing agent performance
        - Debugging conversations
        - Customer service audits
        - Training data collection

        Example response:
        ```json
        {
          "conversation_id": "conv-123",
          "agent_id": "agent-456",
          "created_at": "2025-11-25T10:00:00Z",
          "updated_at": "2025-11-25T10:05:00Z",
          "messages": [
            {
              "role": "user",
              "content": "What is your refund policy?",
              "timestamp": "2025-11-25T10:00:00Z"
            },
            {
              "role": "assistant",
              "content": "Our refund policy...",
              "timestamp": "2025-11-25T10:00:02Z",
              "metadata": {"selected_tool": null, "execution_time_ms": 850}
            }
          ]
        }
        ```
      operationId: >-
        get_conversation_detail_agents__agent_id__conversations__conversation_id__get
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Agent Id
        - name: conversation_id
          in: path
          required: true
          schema:
            type: string
            title: Conversation Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationDetail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ConversationDetail:
      properties:
        conversation_id:
          type: string
          title: Conversation Id
        agent_id:
          type: string
          title: Agent Id
        created_at:
          type: string
          title: Created At
        updated_at:
          type: string
          title: Updated At
        messages:
          items:
            $ref: '#/components/schemas/Message'
          type: array
          title: Messages
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
      type: object
      required:
        - conversation_id
        - agent_id
        - created_at
        - updated_at
        - messages
      title: ConversationDetail
      description: Full conversation with all messages.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Message:
      properties:
        role:
          type: string
          title: Role
          description: '''user'' or ''assistant'''
        content:
          type: string
          title: Content
        timestamp:
          type: string
          title: Timestamp
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
      type: object
      required:
        - role
        - content
        - timestamp
      title: Message
      description: Single message in a conversation.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````