Ownkube AWS Onboarding API
The AWS Onboarding API from Ownkube — 6 operation(s) for aws onboarding.
The AWS Onboarding API from Ownkube — 6 operation(s) for aws onboarding.
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-aws-onboarding-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 AWS Onboarding 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: AWS Onboarding
paths:
/v1/aws/connect:
post:
tags:
- AWS Onboarding
summary: Start connecting an AWS account
description: Mints a cross-account access request and returns the CloudFormation artifacts. Reuses this org's in-flight (unproven) row, so repeated calls do not pile up records. Poll GET /v1/aws/accounts/{accountId} until status is `verified` or `failed`.
security:
- apiKey: []
responses:
'200':
description: Connect artifacts
content:
application/json:
schema:
$ref: '#/components/schemas/AwsConnectResponse'
'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: postV1AwsConnect
x-operation-id-source: derived
/v1/aws/accounts:
get:
tags:
- AWS Onboarding
summary: List connected AWS accounts
security:
- apiKey: []
responses:
'200':
description: AWS accounts
content:
application/json:
schema:
$ref: '#/components/schemas/AwsAccountListResponse'
'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: getV1AwsAccounts
x-operation-id-source: derived
/v1/aws/accounts/{accountId}:
get:
tags:
- AWS Onboarding
summary: Get one AWS account's status
security:
- apiKey: []
parameters:
- schema:
type: string
description: The Ownkube AWS account row id.
required: true
description: The Ownkube AWS account row id.
name: accountId
in: path
responses:
'200':
description: AWS account
content:
application/json:
schema:
$ref: '#/components/schemas/AwsAccount'
'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: getV1AwsAccountsByAccountId
x-operation-id-source: derived
delete:
tags:
- AWS Onboarding
summary: Remove an AWS account
description: Blocked while any cluster still references the account (the cross-account role is required to tear infra down). Destroy those clusters first.
security:
- apiKey: []
parameters:
- schema:
type: string
description: The Ownkube AWS account row id.
required: true
description: The Ownkube AWS account row id.
name: accountId
in: path
responses:
'200':
description: Removed
content:
application/json:
schema:
$ref: '#/components/schemas/AwsSuccessResponse'
'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: deleteV1AwsAccountsByAccountId
x-operation-id-source: derived
/v1/aws/accounts/{accountId}/verify:
post:
tags:
- AWS Onboarding
summary: Verify an AWS connection
description: Normally the stack's phone-home finalizes the connection automatically. Call this to force a verify, optionally passing `awsAccountId` to assume the role directly before the callback arrives.
security:
- apiKey: []
parameters:
- schema:
type: string
description: The Ownkube AWS account row id.
required: true
description: The Ownkube AWS account row id.
name: accountId
in: path
- schema:
type: string
minLength: 1
description: 12-digit AWS account ID. Supply it to verify immediately (autonomous mode) instead of waiting for the stack's phone-home.
required: false
description: 12-digit AWS account ID. Supply it to verify immediately (autonomous mode) instead of waiting for the stack's phone-home.
name: awsAccountId
in: query
responses:
'200':
description: Verification result
content:
application/json:
schema:
$ref: '#/components/schemas/AwsVerifyResponse'
'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: postV1AwsAccountsByAccountIdVerify
x-operation-id-source: derived
/v1/aws/accounts/{accountId}/reconnect:
post:
tags:
- AWS Onboarding
summary: Re-arm an account whose access stack was removed
description: Re-arms the existing row in place (same external ID and account ID) and returns a fresh CloudFormation link. Re-running the stack recreates the role and re-verifies the same account, so no duplicate is created.
security:
- apiKey: []
parameters:
- schema:
type: string
description: The Ownkube AWS account row id.
required: true
description: The Ownkube AWS account row id.
name: accountId
in: path
responses:
'200':
description: Reconnect artifacts
content:
application/json:
schema:
$ref: '#/components/schemas/AwsReconnectResponse'
'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: postV1AwsAccountsByAccountIdReconnect
x-operation-id-source: derived
/v1/aws/accounts/{accountId}/resync:
post:
tags:
- AWS Onboarding
summary: Re-run account setup on a verified account
description: 'Re-applies the shared roles and policies for an already-verified account. Safe to call to pick up an available upgrade (`needsUpgrade: true`).'
security:
- apiKey: []
parameters:
- schema:
type: string
description: The Ownkube AWS account row id.
required: true
description: The Ownkube AWS account row id.
name: accountId
in: path
responses:
'200':
description: Resync started
content:
application/json:
schema:
$ref: '#/components/schemas/AwsSuccessResponse'
'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: postV1AwsAccountsByAccountIdResync
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
AwsConnectTemplate:
type: object
properties:
stackName:
type: string
templateUrl:
type: string
parameters:
type: object
properties:
TrustArnParameter:
type: string
ExternalIdParameter:
type: string
CallbackUrlParameter:
type: string
CallbackTokenParameter:
type: string
required:
- TrustArnParameter
- ExternalIdParameter
- CallbackUrlParameter
- CallbackTokenParameter
required:
- stackName
- templateUrl
- parameters
description: Deploy this stack yourself with AWS creds already in your environment (autonomous mode). Parameter keys match the template exactly.
AwsConnectResponse:
type: object
properties:
accountId:
type: string
description: Poll GET /v1/aws/accounts/{accountId} for status
externalId:
type: string
region:
type: string
quickCreateUrl:
type: string
description: Open in a browser and click Create stack (handoff mode)
template:
$ref: '#/components/schemas/AwsConnectTemplate'
required:
- accountId
- externalId
- region
- quickCreateUrl
- template
AwsVerifyResponse:
type: object
properties:
success:
type: boolean
error:
type: string
nullable: true
required:
- success
AwsReconnectResponse:
type: object
properties:
externalId:
type: string
quickCreateUrl:
type: string
required:
- externalId
- quickCreateUrl
AwsAccount:
type: object
properties:
id:
type: string
description: Ownkube account row ID (pollable)
awsAccountId:
type: string
nullable: true
description: 12-digit AWS account ID once the stack reports in
status:
type: string
description: pending (waiting on the stack) / configuring (provisioning access) / verified / failed
region:
type: string
cloudFormationStackStatus:
type: string
nullable: true
needsUpgrade:
type: boolean
activeClusters:
type: array
items:
type: object
properties:
id:
type: string
clusterName:
type: string
required:
- id
- clusterName
lastVerifiedAt:
anyOf:
- type: string
- type: string
format: date-time
- nullable: true
createdAt:
anyOf:
- type: string
- type: string
format: date-time
updatedAt:
anyOf:
- type: string
- type: string
format: date-time
failure:
$ref: '#/components/schemas/AwsConnectionFailure'
required:
- id
- awsAccountId
- status
- region
- cloudFormationStackStatus
- needsUpgrade
- activeClusters
- failure
AwsAccountListResponse:
type: object
properties:
accounts:
type: array
items:
$ref: '#/components/schemas/AwsAccount'
required:
- accounts
AwsConnectionFailure:
type: object
nullable: true
properties:
code:
type: string
description: Raw CloudFormation status code this maps from
kind:
type: string
enum:
- retry
- quota
- conflict
description: 'How to recover: `retry` (transient/propagation, re-verify or re-launch the same stack), `quota` (fix an AWS limit then re-verify), `conflict` (account claimed elsewhere, use a different account).'
title:
type: string
description: Short plain headline
description:
type: string
description: What happened and what to do next
docsUrl:
type: string
nullable: true
description: External help link, when relevant
required:
- code
- kind
- title
- description
- docsUrl
description: Structured failure + remediation when status is `failed`
AwsSuccessResponse:
type: object
properties:
success:
type: boolean
required:
- success
securitySchemes:
apiKey:
type: apiKey
in: header
name: x-api-key
description: API key issued by the browser-based CLI authorization flow.