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

# Get cluster details

> Returns detailed information about a cluster, including KaaS status if applicable.



## OpenAPI

````yaml /openapi.json get /v1/clusters/{id}
openapi: 3.1.0
info:
  title: CNAP API
  version: 1.0.0
  description: >-
    Public API for managing CNAP workspaces, clusters, templates, products, and
    deployments.


    Authenticate with a Personal Access Token via the `Authorization: Bearer
    cnap_pat_...` header.


    Workspace-scoped endpoints require the `X-Workspace-Id` header.
servers:
  - url: https://api.cnap.tech
    description: Production
security: []
paths:
  /v1/clusters/{id}:
    get:
      tags:
        - Clusters
      summary: Get cluster details
      description: >-
        Returns detailed information about a cluster, including KaaS status if
        applicable.
      parameters:
        - schema:
            type: string
            description: Cluster ID
          required: true
          description: Cluster ID
          name: id
          in: path
      responses:
        '200':
          description: Cluster details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Cluster'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not a member of the cluster workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Cluster not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    Cluster:
      type: object
      properties:
        id:
          type: string
          example: j572abc123def456
        name:
          type: string
          example: production
        workspace_id:
          type: string
          example: j572abc123def456
        region_id:
          type: string
          example: j572abc123def456
        kaas:
          $ref: '#/components/schemas/KaasInfo'
        created_at:
          type: number
          description: Unix timestamp (seconds)
      required:
        - id
        - name
        - workspace_id
        - region_id
        - kaas
        - created_at
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: not_found
            message:
              type: string
              example: Resource not found
            param:
              type: string
              description: The request field that caused the error
              example: name
            suggestion:
              type: string
              example: Run `cnap clusters list` to see available clusters
            details: {}
          required:
            - code
            - message
      required:
        - error
    KaasInfo:
      type:
        - object
        - 'null'
      properties:
        version:
          type: string
          example: v1.30
          description: Kubernetes version
        status:
          type: string
          enum:
            - PROVISIONING
            - RUNNING
            - RECONCILING
            - SUSPENDING
            - SUSPENDED
            - RESUMING
            - DELETING
            - ERROR
            - DEGRADED
          example: RUNNING
          description: Current lifecycle status of the KaaS cluster
        status_message:
          type:
            - string
            - 'null'
          example: null
          description: Human-readable status details
      required:
        - version
        - status
        - status_message
      description: Present if cluster is KaaS-managed
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Personal Access Token (cnap_pat_...) or OAuth2 JWT. Create tokens at
        https://cnap.tech/account/tokens

````