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

> Export the published categories and articles of a help center as one content tree. Use to back up content or mirror it into another system.

# Export help center content tree



## OpenAPI

````yaml get /hc/{id}/export
openapi: 3.1.0
info:
  title: OpenCX API
  description: >

    OpenCX is an AI-powered, all-in-one platform for customer support and
    outbound communications.


    Use this API to manage your OpenCX organization's AI agents, actions,
    conversations, contacts, and more.


    To get started, generate a new API key from the dashboard.


    ## Authentication

    All API endpoints require authentication using a Bearer token. You can
    generate an API key from your OpenCX dashboard.


    ## Rate Limiting

    API requests are rate limited to ensure fair usage. The current limits are:

    - 100 requests per minute for standard endpoints

    - 1000 requests per minute for streaming endpoints


    ## Error Handling

    The API uses standard HTTP status codes and returns detailed error messages
    in the response body.
  version: 1.0-beta
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: http://localhost:8080
    description: Development
  - url: https://api.open.cx
    description: Production
security:
  - bearerAuth: []
paths:
  /hc/{id}/export:
    get:
      summary: Export help center content tree
      description: Export all published categories and articles for a help center.
      operationId: exportHelpCenterContent
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportContentTreeDto'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
components:
  schemas:
    ExportContentTreeDto:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/ExportContentTreeDto'
      type: object
      properties:
        categories:
          type: array
          items:
            $ref: '#/components/schemas/ExportCategoryDto'
        media:
          type: array
          items:
            type: object
            properties:
              file_name:
                type: string
              url:
                type: string
              checksum:
                anyOf:
                  - type: string
                  - type: 'null'
            required:
              - file_name
              - url
              - checksum
            additionalProperties: false
        openapi_spec:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - categories
      additionalProperties: false
    ErrorDto:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
    ExportCategoryDto:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/ExportCategoryDto'
      type: object
      properties:
        name:
          type: string
        slug:
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
        icon:
          anyOf:
            - type: string
            - type: 'null'
        articles:
          type: array
          items:
            $ref: '#/components/schemas/ExportArticleDto'
        categories:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              slug:
                type: string
              description:
                anyOf:
                  - type: string
                  - type: 'null'
              icon:
                anyOf:
                  - type: string
                  - type: 'null'
              articles:
                type: array
                items:
                  $ref: '#/components/schemas/ExportArticleDto'
              categories:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                    slug:
                      type: string
                    description:
                      anyOf:
                        - type: string
                        - type: 'null'
                    icon:
                      anyOf:
                        - type: string
                        - type: 'null'
                    articles:
                      type: array
                      items:
                        $ref: '#/components/schemas/ExportArticleDto'
                    categories:
                      type: array
                      items:
                        type: object
                        properties:
                          name:
                            type: string
                          slug:
                            type: string
                          description:
                            anyOf:
                              - type: string
                              - type: 'null'
                          icon:
                            anyOf:
                              - type: string
                              - type: 'null'
                          articles:
                            type: array
                            items:
                              $ref: '#/components/schemas/ExportArticleDto'
                          categories:
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                slug:
                                  type: string
                                description:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                icon:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                articles:
                                  type: array
                                  items:
                                    $ref: '#/components/schemas/ExportArticleDto'
                                categories:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                      slug:
                                        type: string
                                      description:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                      icon:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                      articles:
                                        type: array
                                        items:
                                          $ref: '#/components/schemas/ExportArticleDto'
                                    required:
                                      - name
                                      - slug
                                      - description
                                      - icon
                                      - articles
                                    additionalProperties: false
                              required:
                                - name
                                - slug
                                - description
                                - icon
                                - articles
                                - categories
                              additionalProperties: false
                        required:
                          - name
                          - slug
                          - description
                          - icon
                          - articles
                          - categories
                        additionalProperties: false
                  required:
                    - name
                    - slug
                    - description
                    - icon
                    - articles
                    - categories
                  additionalProperties: false
            required:
              - name
              - slug
              - description
              - icon
              - articles
              - categories
            additionalProperties: false
      required:
        - name
        - slug
        - description
        - icon
        - articles
        - categories
      additionalProperties: false
    ExportArticleDto:
      $schema: https://json-schema.org/draft/2020-12/schema
      $id: '#/components/schemas/ExportArticleDto'
      type: object
      properties:
        title:
          type: string
        slug:
          type: string
        content_markdown:
          anyOf:
            - type: string
            - type: 'null'
        meta_title:
          anyOf:
            - type: string
            - type: 'null'
        meta_description:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - title
        - slug
        - content_markdown
        - meta_title
        - meta_description
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````