Skip to main content
POST
Start an onboarding app

Authorizations

ankra_session
string
cookie
required

Browser session. Mutations also require X-Ankra-CSRF.

Body

application/json

An existing GitHub repository to put online on the cluster. A second start for the same repository answers the onboarding app the organisation already has and creates no second application.

cluster_id
string<uuid>
required
credential_id
string<uuid>
required

The GitHub credential the application reads the repository with.

owner
string
required
repository
string
required
branch
string
required
name
string

The application name; the repository name when omitted.

Maximum string length: 100
dependencies
enum<string>[]

The services the app uses. Ankra wires Postgres automatically; the others are recorded and detected from the code, not provisioned.

Available options:
postgres,
redis,
mongodb,
mysql

Response

The onboarding app, new or the one the organisation already started for the repository.

The onboarding wizard's app: an existing repository registered as an application on the cluster, with AI code review, pull request previews, backups, merge-when-green on the setup pull request and the first deploy turned on. The id is the application's id.

id
string<uuid>
required
cluster_id
string<uuid>
required
application_id
string<uuid> | null
required
repository
string
required

owner/name of the repository.

state
enum<string>
required
Available options:
setting_up,
live,
failed
url
string | null
required

The app's public address once known.

message
string | null
required

One user-facing sentence for the current state.

steps
OnboardingAppStep · object[]
required

Always all seven steps, in the order application, pipeline, code_review, previews, backups, auto_merge, deploy.

dependencies
enum<string>[]
required
Available options:
postgres,
redis,
mongodb,
mysql
created_at
string<date-time>
required
updated_at
string<date-time>
required