Skip to main content
POST
Generate an onboarding website

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Ankra-Organisation-Id
string<uuid>

Act in another organisation the token's owner is an active member of; defaults to the token's own organisation.

X-Ankra-Project-Id
string<uuid>

Act in another project of the organisation; a token pinned to a project cannot leave it.

Body

application/json

A prompt alone writes the site, starting from the starter it plainly asks for when there is one. A template serves that starter; with a prompt the starter is personalised, without one it is served as it is and needs no AI.

cluster_id
string<uuid>
required
target
OnboardingWebsiteTarget · object
required

starter serves the site from a stack on the cluster; repository commits it to a new GitHub repository (credential_id, owner and repository_name required) and deploys it as an application.

prompt
string

Required without a template; optional and may be blank with one.

Required string length: 3 - 2000
template
string

A starter key from GET /org/onboarding/website-templates.

theme
string

A theme key from GET /org/onboarding/website-templates.

Response

The website is queued

id
string<uuid>
required
state
string
required