Ownkube Clusters API
The Clusters API from Ownkube — 4 operation(s) for clusters.
The Clusters API from Ownkube — 4 operation(s) for clusters.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/ownkube-io:ownkube-io-clusters-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Ownkube CLI Clusters API
version: 1.15.0
description: API for the Ownkube CLI tool. Authenticate via browser-based flow, then use x-api-key header for subsequent requests.
servers:
- url: /api/cli
security:
- apiKey: []
tags:
- name: Clusters
paths:
/v1/clusters:
get:
tags:
- Clusters
summary: List clusters in the current organization
security:
- apiKey: []
responses:
'200':
description: Clusters
content:
application/json:
schema:
$ref: '#/components/schemas/ClusterListResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getV1Clusters
x-operation-id-source: derived
post:
tags:
- Clusters
summary: Create a cluster
description: 'Provisions a Starter cluster (the self-hosted shape) into a verified AWS account (`cloudAccountId`). Returns immediately with a `clusterId` and `status: creating`; poll `/v1/clusters/{clusterId}/status` until it reports `active` or `failed`. Production (`clusterType: eks`) is not self-serve — contact us to enable a Production cluster.'
security:
- apiKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
cloudAccountId:
type: string
provider:
type: string
enum:
- aws
- gcp
- azure
- hetzner
clusterType:
type: string
enum:
- eks
- gke
- aks
- k3s
clusterName:
type: string
minLength: 1
maxLength: 40
pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
region:
type: string
kubernetesVersion:
type: string
podsCidr:
type: string
default: 10.244.0.0/16
servicesCidr:
type: string
default: 10.96.0.0/12
nodeInstanceType:
type: string
default: t3.medium
desiredVcpu:
type: integer
minimum: 2
maximum: 256
default: 8
desiredMemoryGiB:
type: integer
minimum: 4
maximum: 512
default: 16
enableAutoscaling:
type: boolean
default: false
workerCapacityType:
type: string
enum:
- on-demand
- spot
- prefer-spot
default: on-demand
telemetryRetentionDays:
type: integer
minimum: 1
maximum: 3650
default: 30
initialDeployment:
type: object
properties:
name:
type: string
minLength: 1
maxLength: 63
repository:
type: string
minLength: 1
tag:
type: string
minLength: 1
port:
type: integer
minimum: 1
maximum: 65535
default: 80
public:
type: boolean
default: true
replicas:
type: integer
minimum: 1
maximum: 20
required:
- name
- repository
- tag
initialTemplate:
type: object
properties:
slug:
type: string
minLength: 1
required:
- slug
required:
- cloudAccountId
- provider
- clusterType
- clusterName
- region
- kubernetesVersion
responses:
'200':
description: Cluster creation queued
content:
application/json:
schema:
$ref: '#/components/schemas/CreateClusterResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postV1Clusters
x-operation-id-source: derived
/v1/clusters/{clusterId}:
get:
tags:
- Clusters
summary: Get a cluster by ID
security:
- apiKey: []
parameters:
- schema:
type: string
description: The cluster id.
required: true
description: The cluster id.
name: clusterId
in: path
responses:
'200':
description: Cluster
content:
application/json:
schema:
$ref: '#/components/schemas/Cluster'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getV1ClustersByClusterId
x-operation-id-source: derived
delete:
tags:
- Clusters
summary: Destroy a cluster
description: Tears the cluster down. Blocked when the cluster still has active deployments unless `force=true` is passed.
security:
- apiKey: []
parameters:
- schema:
type: string
description: The cluster id.
required: true
description: The cluster id.
name: clusterId
in: path
- schema:
type: string
enum:
- 'true'
- 'false'
description: Destroy even when the cluster still has active deployments. Defaults to false.
required: false
description: Destroy even when the cluster still has active deployments. Defaults to false.
name: force
in: query
responses:
'200':
description: Cluster destruction queued
content:
application/json:
schema:
$ref: '#/components/schemas/DestroyClusterResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: deleteV1ClustersByClusterId
x-operation-id-source: derived
/v1/clusters/{clusterId}/status:
get:
tags:
- Clusters
summary: Get a cluster's live provisioning status
description: 'Lightweight poll target during create/destroy: status, message, and provisioning progress without the full row.'
security:
- apiKey: []
parameters:
- schema:
type: string
description: The cluster id.
required: true
description: The cluster id.
name: clusterId
in: path
responses:
'200':
description: Cluster status
content:
application/json:
schema:
$ref: '#/components/schemas/ClusterStatusResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: getV1ClustersByClusterIdStatus
x-operation-id-source: derived
/v1/clusters/{clusterId}/cancel:
post:
tags:
- Clusters
summary: Cancel an in-flight cluster creation
description: Valid only while the cluster is still `creating`.
security:
- apiKey: []
parameters:
- schema:
type: string
description: The cluster id.
required: true
description: The cluster id.
name: clusterId
in: path
responses:
'200':
description: Cluster creation cancelling
content:
application/json:
schema:
$ref: '#/components/schemas/CancelClusterResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'401':
description: Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'412':
description: Precondition failed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'429':
description: Rate limited; retry after the Retry-After header's seconds
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
operationId: postV1ClustersByClusterIdCancel
x-operation-id-source: derived
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: string
description: Human-readable error message
code:
type: string
description: Machine-readable error code
required:
- error
- code
DestroyClusterResponse:
type: object
properties:
clusterId:
type: string
status:
type: string
required:
- clusterId
- status
CreateClusterResponse:
type: object
properties:
clusterId:
type: string
status:
type: string
statusMessage:
type: string
required:
- clusterId
- status
CancelClusterResponse:
type: object
properties:
clusterId:
type: string
status:
type: string
required:
- clusterId
- status
ClusterStatusResponse:
type: object
properties:
id:
type: string
status:
type: string
statusMessage:
type: string
nullable: true
provisioningProgress:
nullable: true
required:
- id
- status
Cluster:
type: object
properties:
id:
type: string
name:
type: string
provider:
type: string
clusterType:
type: string
region:
type: string
nullable: true
cloudAccountId:
type: string
nullable: true
description: The connected cloud account this cluster runs in.
status:
type: string
statusMessage:
type: string
nullable: true
kubernetesVersion:
type: string
nullable: true
infrastructureUpgradeAvailable:
type: boolean
upgradeAvailable:
type: boolean
activeDeploymentCount:
type: number
createdAt:
anyOf:
- type: string
- type: string
format: date-time
updatedAt:
anyOf:
- type: string
- type: string
format: date-time
required:
- id
- name
- provider
- clusterType
- status
ClusterListResponse:
type: object
properties:
clusters:
type: array
items:
$ref: '#/components/schemas/Cluster'
required:
- clusters
securitySchemes:
apiKey:
type: apiKey
in: header
name: x-api-key
description: API key issued by the browser-based CLI authorization flow.