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

# List the Kubernetes reservations you can log in to

> The caller's own live cluster access grants, grouped by cluster, for
`prime factory k8s list`. Looked up by the token's user only; never another
user's or another team's grants, and no CA or credential.

Shape (shared with the prime CLI)::

    {"clusters": [{"cluster": str, "displayName": str | None,
                   "reservations": [{"pool": str, "namespace": str,
                                     "teamId": str | None,
                                     "status": "Ready" | "Provisioning"
                                               | "Releasing" | "Failed",
                                     "proxyReady": bool,
                                     "server": str | None,
                                     "unavailableReason": str | None}]}]}

Built from what the heartbeat pass stored (proxy state, tailnet FQDN);
no cluster or Tailscale call per request. No grants is an empty list.



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json get /api/v1/clusters
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/clusters:
    get:
      tags:
        - clusters
      summary: List the Kubernetes reservations you can log in to
      description: >-
        The caller's own live cluster access grants, grouped by cluster, for

        `prime factory k8s list`. Looked up by the token's user only; never
        another

        user's or another team's grants, and no CA or credential.


        Shape (shared with the prime CLI)::

            {"clusters": [{"cluster": str, "displayName": str | None,
                           "reservations": [{"pool": str, "namespace": str,
                                             "teamId": str | None,
                                             "status": "Ready" | "Provisioning"
                                                       | "Releasing" | "Failed",
                                             "proxyReady": bool,
                                             "server": str | None,
                                             "unavailableReason": str | None}]}]}

        Built from what the heartbeat pass stored (proxy state, tailnet FQDN);

        no cluster or Tailscale call per request. No grants is an empty list.
      operationId: list_clusters_api_v1_clusters_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '401':
          description: Authorization failed
        '422':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
    ErrorDetail:
      properties:
        param:
          type: string
          title: Param
        details:
          type: string
          title: Details
      type: object
      required:
        - param
        - details
      title: ErrorDetail
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````