{
  "opencollection": "1.0.0",
  "info": {
    "name": "Prime Intellect Compute admin-clusters API",
    "version": "0.1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "admin-clusters",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Clusters",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.primeintellect.ai/api/admin/clusters",
            "params": [
              {
                "name": "vaultEnabled",
                "value": "",
                "type": "query",
                "description": "If true, return only vault-enabled clusters; if false, only non-vault-enabled. Omit to include both."
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Case-insensitive substring match against cluster name or id."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Number of items to skip."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Max items to return (1-100)."
              },
              {
                "name": "detailed",
                "value": "",
                "type": "query",
                "description": "If true, populate `nodes` for each cluster (one entry per pod). Otherwise only the `controller` connection is returned."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "List non-terminated clusters."
        },
        {
          "info": {
            "name": "Get Cluster",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.primeintellect.ai/api/admin/clusters/:cluster_id",
            "params": [
              {
                "name": "cluster_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Return full DB details for one cluster (columns + nodes + SSH keys)."
        },
        {
          "info": {
            "name": "Request Certificate",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.primeintellect.ai/api/admin/clusters/:cluster_id/authorizations/certificate",
            "params": [
              {
                "name": "cluster_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Sign the requesting admin's SSH public key via Vault.\n\nIf a ``publicKey`` is provided in the body, it is signed directly.\nOtherwise the admin's DB-stored SSH public key is used."
        },
        {
          "info": {
            "name": "List Cluster Node Logs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.primeintellect.ai/api/admin/clusters/:cluster_id/node-logs",
            "params": [
              {
                "name": "cluster_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "podId",
                "value": "",
                "type": "query",
                "description": "Filter logs to a single pod."
              },
              {
                "name": "eventType",
                "value": "",
                "type": "query",
                "description": "Filter logs to a single event type."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Number of items to skip."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Max items to return (1-100, default 20)."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Return paginated ClusterNodeLog entries for one cluster, newest first."
        }
      ]
    }
  ],
  "bundled": true
}