> ## 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 Agent Conversations

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

## Example Response

```json theme={null}
{
  "success": true,
  "message": "Conversations 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",
          "tags": ["new-lead", "high-priority"]
        },
        "sessions": []
      },
      "turns": [
        {
          "from": "user",
          "messages": [
            {
              "type": "text",
              "ts": "December 1st 2024, 10:30:00 am",
              "payload": {
                "message": "Hello!",
                "feedback": "Unset"
              }
            }
          ]
        }
      ]
    }
  ]
}
```

## Use Cases

* **Analytics** - Export all conversations for external analysis
* **Backup** - Create a backup of all conversation data
* **Training** - Export conversations for AI training purposes

## Notes

* Returns all conversations with full turn history
* Includes feedback status (Positive, Negative, Unset)
* Timestamps are formatted as human-readable strings
* All lead fields are included: `userName`, `userEmail`, `userPhone`, `userCompany`, `userAddress`, `userWebsite`, `notes`, `tags`


## OpenAPI

````yaml GET /agents/{agentId}/convos/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/export:
    get:
      tags:
        - Conversations
      summary: Export Agent Conversations
      description: >-
        Exports all conversations for the specified agent in a format suitable
        for download
      operationId: conversationRouter-exportAgentConvos
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
        - name: format
          in: query
          required: false
          schema:
            anyOf:
              - not: {}
              - type: string
                enum:
                  - csv
                  - json
            default: json
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  data:
                    type: array
                required:
                  - success
                  - message
                  - data
                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

````