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

# Export Single Conversation

> Exports a single conversation for the specified agent in a format suitable for download, using the V3 [endpoints](/api-reference/v3/intro).

## Example Response

```json theme={null}
{
  "success": true,
  "message": "Conversation exported successfully",
  "data": {
    "metadata": {
      "feedback": "Positive",
      "convo": {
        "id": "convo123",
        "userName": "John Doe",
        "userEmail": "john@example.com",
        "userPhone": "+1234567890",
        "userCompany": "Acme Corp",
        "notes": "Customer interested in premium plan, follow up scheduled",
        "tags": ["new-lead"],
        "origin": "web"
      },
      "sessions": []
    },
    "turns": [
      {
        "from": "user",
        "messages": [
          {
            "type": "text",
            "ts": "December 1st 2024, 10:30:00 am",
            "payload": {
              "message": "Hello!",
              "feedback": "Unset",
              "aiGenerated": false
            }
          }
        ]
      },
      {
        "from": "bot",
        "messages": [
          {
            "type": "text",
            "ts": "December 1st 2024, 10:30:02 am",
            "payload": {
              "message": "Hi! How can I help you today?",
              "feedback": "Positive",
              "aiGenerated": true
            }
          }
        ]
      }
    ]
  }
}
```

## Notes

* The conversation must belong to the specified agent
* Includes full turn history with timestamps
* Feedback status indicates user feedback on each message
* All lead fields are included: `userName`, `userEmail`, `userPhone`, `userCompany`, `userAddress`, `userWebsite`, `notes`, `tags`


## OpenAPI

````yaml GET /agents/{agentId}/convos/{convoId}/export
openapi: 3.0.3
info:
  title: Convocore OpenAPI
  description: Full API reference for Convocore
  version: 1.0.4
servers:
  - url: https://eu-gcp-api.vg-stuff.com/v3
    description: EU Node.js API server
  - url: https://na-gcp-api.vg-stuff.com/v3
    description: NA Node.js API server
security: []
paths:
  /agents/{agentId}/convos/{convoId}/export:
    get:
      tags:
        - Conversations
      summary: Export Single Conversation
      description: >-
        Exports a single conversation for the specified agent in a format
        suitable for download.
      operationId: conversationRouter-exportSingleConvo
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
        - name: convoId
          in: path
          required: true
          schema:
            type: string
        - name: format
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: string
                enum:
                  - json
                  - csv
            default: json
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  data: {}
                required:
                  - success
                  - message
                additionalProperties: false
        default:
          $ref: '#/components/responses/error'
      security:
        - Authorization: []
components:
  responses:
    error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              issues:
                type: array
                items:
                  type: object
                  properties:
                    message:
                      type: string
                  required:
                    - message
                  additionalProperties: false
            required:
              - message
              - code
            additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer

````