Ownkube Custom Domains API

The Custom Domains API from Ownkube — 3 operation(s) for custom domains.

GitHub OpenAPI

Operations 4

GET /v1/deployments/{deploymentId}/custom-domains List a deployment's linked custom domains #
POST /v1/deployments/{deploymentId}/custom-domains Link a custom domain to a deployment #
POST /v1/custom-domains/{domainId}/verify Recheck a linked custom domain #
DELETE /v1/custom-domains/{domainId} Unlink a custom domain #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ownkube-io:ownkube-io-custom-domains-api"
All apis
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.

Get an API 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 Specification

ownkube-io-custom-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ownkube CLI Custom Domains 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: Custom Domains
paths:
  /v1/deployments/{deploymentId}/custom-domains:
    get:
      tags:
      - Custom Domains
      summary: List a deployment's linked custom domains
      description: Lists the hosts linked to this web app. On Ownkube Compute it also returns the plan's custom-domain allowance; on a Starter cluster, the parent domains connected on the cluster. Each linked host carries the DNS records the customer sets.
      security:
      - apiKey: []
      parameters:
      - schema:
          type: string
          description: The deployment id.
        required: true
        description: The deployment id.
        name: deploymentId
        in: path
      responses:
        '200':
          description: Custom domains
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCustomDomainsResponse'
        '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: getV1DeploymentsByDeploymentIdCustomDomains
      x-operation-id-source: derived
    post:
      tags:
      - Custom Domains
      summary: Link a custom domain to a deployment
      description: Links a host (a subdomain like `app.customer.com`, or the apex `customer.com`) to a public web app. On Ownkube Compute any host can be linked directly and each counts toward the plan's custom-domain allowance; on a Starter cluster the parent domain must already be connected on the cluster. Returns the linked host with the DNS records to create.
      security:
      - apiKey: []
      parameters:
      - schema:
          type: string
          description: The deployment id.
        required: true
        description: The deployment id.
        name: deploymentId
        in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkCustomDomainBody'
      responses:
        '200':
          description: Linked domain
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkCustomDomainResponse'
        '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: postV1DeploymentsByDeploymentIdCustomDomains
      x-operation-id-source: derived
  /v1/custom-domains/{domainId}/verify:
    post:
      tags:
      - Custom Domains
      summary: Recheck a linked custom domain
      description: Re-runs the reconcile for a linked host and reports its certificate status. The host goes live once its routing record resolves and the certificate is active.
      security:
      - apiKey: []
      parameters:
      - schema:
          type: string
          description: The linked custom-domain id.
        required: true
        description: The linked custom-domain id.
        name: domainId
        in: path
      responses:
        '200':
          description: Certificate status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyCustomDomainResponse'
        '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: postV1CustomDomainsByDomainIdVerify
      x-operation-id-source: derived
  /v1/custom-domains/{domainId}:
    delete:
      tags:
      - Custom Domains
      summary: Unlink a custom domain
      description: Detaches a host from its deployment. On Ownkube Compute its certificate is removed too; on a Starter cluster the parent domain stays connected for other apps.
      security:
      - apiKey: []
      parameters:
      - schema:
          type: string
          description: The linked custom-domain id.
        required: true
        description: The linked custom-domain id.
        name: domainId
        in: path
      responses:
        '200':
          description: Unlinked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnlinkCustomDomainResponse'
        '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: deleteV1CustomDomainsByDomainId
      x-operation-id-source: derived
components:
  schemas:
    LinkedCustomDomain:
      type: object
      properties:
        id:
          type: string
        hostname:
          type: string
        status:
          type: string
        certStatus:
          type: string
        lastVerifiedAt:
          anyOf:
          - type: string
          - type: string
            format: date-time
          - nullable: true
        lastCheckError:
          type: string
          nullable: true
        dns:
          $ref: '#/components/schemas/CustomDomainHostDns'
      required:
      - id
      - hostname
      - status
      - certStatus
      - lastVerifiedAt
      - lastCheckError
      - dns
      additionalProperties:
        nullable: true
    LinkCustomDomainBody:
      type: object
      properties:
        hostname:
          type: string
          maxLength: 253
          description: The host to link — a subdomain or the apex of a parent.
      required:
      - hostname
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        code:
          type: string
          description: Machine-readable error code
      required:
      - error
      - code
    VerifyCustomDomainResponse:
      type: object
      properties:
        certStatus:
          type: string
      required:
      - certStatus
    CustomDomainHostDns:
      type: object
      properties:
        acmeChallengeName:
          type: string
        acmeDelegationTarget:
          type: string
        routingRecordName:
          type: string
        routingRecordType:
          type: string
          enum:
          - A
          - ALIAS
          - CNAME
        routingTarget:
          type: string
          nullable: true
      required:
      - acmeChallengeName
      - acmeDelegationTarget
      - routingRecordName
      - routingRecordType
      - routingTarget
    UnlinkCustomDomainResponse:
      type: object
      properties:
        removed:
          type: boolean
      required:
      - removed
    ListCustomDomainsResponse:
      type: object
      properties:
        linked:
          type: array
          items:
            $ref: '#/components/schemas/LinkedCustomDomain'
        availableParents:
          type: array
          items:
            $ref: '#/components/schemas/AvailableCustomDomainParent'
        perHost:
          type: boolean
          description: 'True on Ownkube Compute: link any host directly, no parent domain needed.'
        hostUsage:
          $ref: '#/components/schemas/CustomDomainHostUsage'
      required:
      - linked
      - availableParents
      - perHost
      - hostUsage
    CustomDomainHostUsage:
      type: object
      nullable: true
      properties:
        cap:
          type: integer
          nullable: true
          description: Hosts the plan includes. `null` means no cap.
        inUse:
          type: integer
          description: Hosts connected across the org.
      required:
      - cap
      - inUse
      description: The plan's custom-domain allowance on Ownkube Compute, else null.
    LinkCustomDomainResponse:
      type: object
      properties:
        domain:
          $ref: '#/components/schemas/LinkedCustomDomain'
      required:
      - domain
    AvailableCustomDomainParent:
      type: object
      properties:
        certId:
          type: string
        wildcardDomain:
          type: string
        certStatus:
          type: string
      required:
      - certId
      - wildcardDomain
      - certStatus
      additionalProperties:
        nullable: true
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key issued by the browser-based CLI authorization flow.