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

# Export diagnostics data as downloadable JSON file



## OpenAPI

````yaml /api-reference/admin-server.json get /api/admin/diagnostics/export
openapi: 3.1.0
info:
  title: FalkorDB Admin API
  description: REST API for managing FalkorDB clusters, backups, and users via KubeBlocks
  version: 1.0.0
  contact:
    name: FalkorDB
    url: https://falkordb.com
    email: support@falkordb.com
servers:
  - url: http://localhost:3000
    description: Development server
security:
  - cookieAuth: []
tags:
  - name: System
    description: System health and info endpoints
  - name: Authentication
    description: User authentication endpoints
  - name: OAuth
    description: OAuth 2.0 sign-in flows
  - name: Users
    description: User management endpoints
  - name: User Profile
    description: Signed-in user profile and password
  - name: Clusters
    description: Cluster management endpoints
  - name: Cluster Operations
    description: 'KubeBlocks OpsRequests: restart, scale, reconfigure, switchover'
  - name: Backups
    description: Backup management endpoints
  - name: Backup Policies
    description: Backup policy management endpoints
  - name: Backup Schedules
    description: Recurring backup schedules
  - name: Backup Repositories
    description: Backup repository management
  - name: Restores
    description: Restore a deployment from a backup
  - name: Settings
    description: System settings endpoints
  - name: RBAC
    description: Role-based access control
  - name: Licensing
    description: License status and activation
  - name: Audit
    description: Audit log endpoints
  - name: Metrics
    description: System, deployment, and pod metrics
  - name: Diagnostics
    description: Health checks, diagnostics, and support packages
  - name: Search
    description: Cross-resource search
paths:
  /api/admin/diagnostics/export:
    get:
      tags:
        - Diagnostics
      summary: Export diagnostics data as downloadable JSON file
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                allOf:
                  - type: object
                    required:
                      - server
                      - health
                      - resources
                      - recentErrors
                    properties:
                      server:
                        type: object
                        required:
                          - uptime
                          - version
                          - nodeVersion
                          - platform
                          - arch
                          - memory
                          - cpus
                        properties:
                          uptime:
                            type: number
                          version:
                            type: string
                          nodeVersion:
                            type: string
                          platform:
                            type: string
                          arch:
                            type: string
                          memory:
                            type: object
                            required:
                              - total
                              - free
                              - used
                              - usagePercent
                            properties:
                              total:
                                type: number
                              free:
                                type: number
                              used:
                                type: number
                              usagePercent:
                                type: number
                          cpus:
                            type: number
                      versions:
                        type: object
                        properties:
                          helmChart:
                            type: object
                            required:
                              - releaseName
                              - namespace
                              - version
                            properties:
                              releaseName:
                                type: string
                              namespace:
                                type: string
                              chart:
                                type: string
                              version:
                                type: string
                              appVersion:
                                type: string
                              revision:
                                type: string
                              status:
                                type: string
                              updated:
                                type: string
                          server:
                            type: object
                            required:
                              - version
                            properties:
                              image:
                                type: string
                              version:
                                type: string
                              namespace:
                                type: string
                              podName:
                                type: string
                              containerName:
                                type: string
                          ui:
                            type: object
                            required:
                              - version
                            properties:
                              image:
                                type: string
                              version:
                                type: string
                              namespace:
                                type: string
                              podName:
                                type: string
                              containerName:
                                type: string
                          addon:
                            type: object
                            required:
                              - version
                              - availableVersions
                              - componentDefinitions
                            properties:
                              version:
                                type: string
                              availableVersions:
                                type: array
                                items:
                                  type: string
                              componentDefinitions:
                                type: array
                                items:
                                  type: string
                      health:
                        type: object
                        required:
                          - status
                          - checks
                          - timestamp
                        properties:
                          status:
                            anyOf:
                              - type: string
                                enum:
                                  - healthy
                              - type: string
                                enum:
                                  - degraded
                              - type: string
                                enum:
                                  - unhealthy
                          checks:
                            type: object
                            required:
                              - k8sApi
                              - kubeBlocks
                              - database
                            properties:
                              k8sApi:
                                anyOf:
                                  - type: string
                                    enum:
                                      - healthy
                                  - type: string
                                    enum:
                                      - unhealthy
                              kubeBlocks:
                                anyOf:
                                  - type: string
                                    enum:
                                      - healthy
                                  - type: string
                                    enum:
                                      - unhealthy
                              database:
                                anyOf:
                                  - type: string
                                    enum:
                                      - healthy
                                  - type: string
                                    enum:
                                      - unhealthy
                          timestamp:
                            type: string
                          error:
                            type: string
                      resources:
                        type: object
                        required:
                          - totalClusters
                          - recentActivityCount
                        properties:
                          totalClusters:
                            type: number
                          recentActivityCount:
                            type: number
                      recentErrors:
                        type: array
                        items: {}
                  - type: object
                    required:
                      - timestamp
                    properties:
                      timestamp:
                        description: ISO 8601 timestamp of when the export was generated
                        type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  statusCode:
                    type: number
                  error:
                    type: string
                  message:
                    type: string
components:
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: token
      description: JWT token stored in HTTP-only cookie

````