Skip to main content
POST
Import a Claude Design application

Authorizations

Authorization
string
header
required

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

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
files
ImportClaudeDesignFile · object[]
required
name
string
required
app_repo_credential_name
string

GitHub credential the repository is created and read through. Required with save_to_github, ignored otherwise.

app_repo_name
string | null

Repository name; defaults to a slug of the application name.

app_repo_owner
string

GitHub user or organisation the repository is created under. Required with save_to_github, ignored otherwise.

save_to_github
boolean | null

Create a GitHub repository for the site under app_repo_owner and build it from there. Off by default: Ankra hosts the site itself and creates no repository.

source_url
string | null

The claude.ai/design link the export came from. An Ankra-hosted import of the same name and source_url replaces the earlier import's content; with save_to_github it is recorded in the repository README and provenance file.

visibility
string | null

'private' (default) or 'public'.

Response

Successful Response

errors
ResourceError · object[]
required
hosting
string
required

Where the site's source lives: 'ankra' (hosted by Ankra, no repository) or 'github' (save_to_github); empty when the import was refused.

id
string | null
required

The registered application id; null when the import was refused (see errors).

notes
string[]
required
pages
ImportedDesignPage · object[]
required
replaced
boolean
required

True when the import gave an existing Ankra-hosted application of the same name and design its new content; deploying an installation serves it.

repository
ImportedRepository · object | null
required

The GitHub repository the site was committed to; null for an Ankra-hosted import.

warnings
ImportedDesignWarning · object[]
required