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

# Export conversion rows

> Returns cursor-paginated conversion/lead/purchase rows for export, contact-level. A workspace token sees unmasked contact data.



## OpenAPI

````yaml /api-reference/platform-api.json get /v1/ads/conversions/export
openapi: 3.1.1
info:
  title: ChatbotX
  version: 0.0.1
servers:
  - url: https://app.chatbotx.io/api
security:
  - bearerAuth: []
  - developerAccessToken: []
  - tokenInSearchParams: []
paths:
  /v1/ads/conversions/export:
    get:
      tags:
        - Ads
      summary: Export conversion rows
      description: >-
        Returns cursor-paginated conversion/lead/purchase rows for export,
        contact-level. A workspace token sees unmasked contact data.
      operationId: ads.listConversionExportRows
      parameters:
        - name: since
          in: query
          required: true
          schema:
            type: string
            format: date-time
            x-native-type: date
            description: ISO 8601 start of the date range (inclusive).
          allowEmptyValue: true
          allowReserved: true
        - name: until
          in: query
          required: true
          schema:
            type: string
            format: date-time
            x-native-type: date
            description: ISO 8601 end of the date range (inclusive).
          allowEmptyValue: true
          allowReserved: true
        - name: segment
          in: query
          required: true
          schema:
            enum:
              - conversations
              - leads
              - purchases
            type: string
            description: Conversion funnel stage to export rows for.
          allowEmptyValue: true
          allowReserved: true
        - name: adId
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                minLength: 1
              - type: 'null'
            description: Restrict to this ad id.
          allowEmptyValue: true
          allowReserved: true
        - name: integrationWhatsappId
          in: query
          required: false
          schema:
            type: string
            pattern: ^\d+$
            description: Restrict to this WhatsApp integration.
          allowEmptyValue: true
          allowReserved: true
        - name: channel
          in: query
          required: false
          schema:
            enum:
              - whatsapp
              - facebook
              - messenger
              - instagram
            type: string
            description: Restrict to this channel.
          allowEmptyValue: true
          allowReserved: true
        - name: integrationMessengerId
          in: query
          required: false
          schema:
            type: string
            pattern: ^\d+$
            description: Restrict to this Messenger integration.
          allowEmptyValue: true
          allowReserved: true
        - name: integrationInstagramId
          in: query
          required: false
          schema:
            type: string
            pattern: ^\d+$
            description: Restrict to this Instagram integration.
          allowEmptyValue: true
          allowReserved: true
        - name: allChannels
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Aggregate across every channel instead of one. Mutually exclusive
              with channel/integration filters.
          allowEmptyValue: true
          allowReserved: true
        - name: afterId
          in: query
          required: false
          schema:
            type: string
            pattern: ^\d+$
            description: >-
              Cursor: id of the last row from the previous page. Omit for the
              first page.
          allowEmptyValue: true
          allowReserved: true
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: -9007199254740991
            maximum: 1000
            exclusiveMinimum: 0
            default: 500
            description: Maximum rows to return, up to 1000.
          allowEmptyValue: true
          allowReserved: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        contactId:
                          type: string
                        contactName:
                          anyOf:
                            - type: string
                            - type: 'null'
                        phoneNumber:
                          anyOf:
                            - type: string
                            - type: 'null'
                        email:
                          anyOf:
                            - type: string
                            - type: 'null'
                        adId:
                          anyOf:
                            - type: string
                            - type: 'null'
                        occurredAt:
                          type: string
                          format: date-time
                          x-native-type: date
                        channel:
                          type: string
                      required:
                        - id
                        - contactId
                        - contactName
                        - phoneNumber
                        - email
                        - adId
                        - occurredAt
                  nextAfterId:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - data
                  - nextAfterId
        '400':
          description: '400'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: businessError
                      status:
                        const: 400
                      message:
                        type: string
                        default: An error occurred while processing your request
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
        '401':
          description: '401'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: UNAUTHORIZED
                      status:
                        const: 401
                      message:
                        type: string
                        default: Authentication required
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: INVALID_CHATBOT_TOKEN
                      status:
                        const: 401
                      message:
                        type: string
                        default: Invalid or missing workspace API token
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
        '403':
          description: '403'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: FORBIDDEN
                      status:
                        const: 403
                      message:
                        type: string
                        default: You do not have permission to perform this action
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: trialExpired
                      status:
                        const: 403
                      message:
                        type: string
                        default: Trial expired
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: macLimitReached
                      status:
                        const: 403
                      message:
                        type: string
                        default: Monthly active contact limit reached
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
        '422':
          description: '422'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: invalidRequestData
                      status:
                        const: 422
                      message:
                        type: string
                        default: Input validation failed
                      data:
                        type: object
                        properties:
                          issues:
                            type: array
                            items:
                              type: object
                              properties:
                                message:
                                  type: string
                                path:
                                  type: array
                                  items:
                                    anyOf:
                                      - type: string
                                      - type: number
                                      - type: object
                                        properties:
                                          key:
                                            anyOf:
                                              - type: string
                                              - type: number
                                        required:
                                          - key
                                        additionalProperties: {}
                              required:
                                - message
                              additionalProperties: {}
                        required:
                          - issues
                        additionalProperties: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                      - data
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: validation
                      status:
                        const: 422
                      message:
                        type: string
                        default: Validation error
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
        '429':
          description: '429'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: tooManyRequests
                      status:
                        const: 429
                      message:
                        type: string
                        default: Too many requests
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
        '500':
          description: '500'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: INTERNAL_SERVER_ERROR
                      status:
                        const: 500
                      message:
                        type: string
                        default: An unexpected error occurred
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
components:
  schemas:
    UndefinedError:
      type: object
      properties:
        defined:
          const: false
        code:
          type: string
        status:
          type: number
        message:
          type: string
        data: {}
      required:
        - defined
        - code
        - status
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    developerAccessToken:
      type: http
      scheme: bearer
    tokenInSearchParams:
      type: apiKey
      in: query
      name: token

````