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

# Export Audiences

> Export of every audience. Follow `pagination.nextCursor` until it is `null` to read the full set.

> **Request access.** This endpoint is not enabled by default, contact the Conversion team to request access. Calls from accounts without it return `403 export_not_enabled`.



## OpenAPI

````yaml /openapi.json post /v2/exports/audiences
openapi: 3.1.0
info:
  title: Conversion API
  version: 2.0.0
  description: >-
    The Conversion API lets you programmatically manage contacts, track custom
    events, and manage their associated data.
servers:
  - url: https://pub-api.conversion.ai/api
security:
  - apiKey: []
paths:
  /v2/exports/audiences:
    post:
      summary: Export Audiences
      description: >-
        Export of every audience. Follow `pagination.nextCursor` until it is
        `null` to read the full set.


        > **Request access.** This endpoint is not enabled by default, contact
        the Conversion team to request access. Calls from accounts without it
        return `403 export_not_enabled`.
      operationId: exportAudiences
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                types:
                  type: array
                  description: Only audiences of these types.
                  items:
                    type: string
                    enum:
                      - STATIC
                      - DYNAMIC
                cursor:
                  type: string
                  description: >-
                    The opaque cursor returned as `pagination.nextCursor` by a
                    previous call. Omit it on the first page. Send it without
                    filters, because the cursor carries them; sending both
                    returns `invalid_filter`.
                  examples:
                    - eyJ2IjoxLCJmIjp7fSwiayI6ImFiYyJ9
                limit:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 50
                  description: >-
                    The maximum number of rows per page. Defaults to 50. Values
                    are clamped to [1, 100].
            examples:
              all:
                summary: Every audience
                value: {}
      responses:
        '200':
          description: A page of audiences retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    required:
                      - audiences
                    properties:
                      audiences:
                        type: array
                        description: The current page of audiences.
                        items:
                          type: object
                          required:
                            - id
                            - name
                            - type
                            - createdAt
                            - updatedAt
                          properties:
                            id:
                              type: string
                              format: uuid
                              description: The audience ID.
                            name:
                              type: string
                              description: The audience's name.
                            type:
                              type: string
                              enum:
                                - STATIC
                                - DYNAMIC
                              description: >-
                                Whether membership is managed by hand or by a
                                filter.
                            createdAt:
                              type: string
                              format: date-time
                              description: When the audience was created.
                            updatedAt:
                              type: string
                              format: date-time
                              description: When the audience was last updated.
                  pagination:
                    type: object
                    required:
                      - nextCursor
                    properties:
                      nextCursor:
                        type:
                          - string
                          - 'null'
                        description: >-
                          Opaque cursor for the next page, or `null` when there
                          are no more results. A page can be short or empty
                          while the cursor is non-null.
        '400':
          description: The request was malformed or contained invalid data.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalid-cursor:
                  summary: Malformed cursor
                  value:
                    error:
                      code: invalid_cursor
                      message: invalid pagination cursor
                cursor-with-filters:
                  summary: Filters sent with a cursor
                  value:
                    error:
                      code: invalid_filter
                      message: >-
                        filters go on the first page only; the cursor carries
                        them
        '401':
          description: Authentication failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                unauthorized:
                  summary: Missing or invalid API key
                  value:
                    error:
                      code: unauthorized
                      message: API key is required
        '403':
          description: The export API is not enabled for this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                export-not-enabled:
                  summary: Export not enabled
                  value:
                    error:
                      code: export_not_enabled
                      message: business is not authorized to use the export API
        '500':
          description: An unexpected server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                internal:
                  summary: Internal error
                  value:
                    error:
                      code: internal_error
                      message: failed to list audiences
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: A machine-readable error code.
              examples:
                - invalid_email
            message:
              type: string
              description: A human-readable error description.
              examples:
                - 'invalid email format: not-an-email'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Your Conversion API key. Found in **Settings > Integrations** in the
        dashboard. Format: `sk_live_<key_id>_<secret>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.