> ## 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 Campaign Types

> Export of every campaign type with its member statuses. 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/campaign-types
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/campaign-types:
    post:
      summary: Export Campaign Types
      description: >-
        Export of every campaign type with its member statuses. 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: exportCampaignTypes
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                categories:
                  type: array
                  description: Only types of these categories.
                  items:
                    type: string
                    enum:
                      - CUSTOM
                      - BLAST
                      - WEBINAR
                      - FIELD_EVENT
                      - AD_CAMPAIGN
                includeArchived:
                  type: boolean
                  description: Include archived rows. Defaults to `true`.
                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 campaign type
                value: {}
      responses:
        '200':
          description: A page of campaign types retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    required:
                      - campaignTypes
                    properties:
                      campaignTypes:
                        type: array
                        description: The current page of campaign types.
                        items:
                          type: object
                          required:
                            - id
                            - name
                            - category
                            - archived
                            - statuses
                          properties:
                            id:
                              type: string
                              format: uuid
                              description: The campaign type ID.
                            name:
                              type: string
                              description: The type's name.
                            description:
                              type:
                                - string
                                - 'null'
                              description: The type's description.
                            category:
                              type: string
                              description: The type's category.
                            archived:
                              type: boolean
                              description: Whether the type is archived.
                            createdAt:
                              type: string
                              format: date-time
                              description: When the type was created.
                            updatedAt:
                              type: string
                              format: date-time
                              description: When the type was last updated.
                            statuses:
                              type: array
                              description: >-
                                The member statuses campaigns of this type use,
                                in order.
                              items:
                                type: object
                                required:
                                  - id
                                  - name
                                  - position
                                  - isSuccess
                                  - hidden
                                properties:
                                  id:
                                    type: string
                                    format: uuid
                                    description: >-
                                      The status ID. Campaign member events
                                      reference it as `statusId`.
                                  name:
                                    type: string
                                    description: The status's name.
                                  position:
                                    type: integer
                                    description: >-
                                      The status's 0-based place in the type's
                                      order.
                                  isSuccess:
                                    type: boolean
                                    description: Whether the status counts as success.
                                  hidden:
                                    type: boolean
                                    description: >-
                                      Whether the status is hidden from status
                                      choices.
                                  parentStatusId:
                                    type:
                                      - string
                                      - 'null'
                                    format: uuid
                                    description: The status this one rolls up to.
                                  createdAt:
                                    type: string
                                    format: date-time
                                    description: When the status was created.
                                  updatedAt:
                                    type: string
                                    format: date-time
                                    description: When the status 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 campaign types
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.