import requests
url = "https://platform.ankra.app/api/v1/org/applications/imports/claude-design"
payload = {
"app_repo_credential_name": "<string>",
"app_repo_owner": "<string>",
"files": [
{
"content_base64": "<string>",
"path": "<string>"
}
],
"name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
app_repo_credential_name: '<string>',
app_repo_owner: '<string>',
files: [{content_base64: '<string>', path: '<string>'}],
name: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/applications/imports/claude-design', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/applications/imports/claude-design \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"app_repo_credential_name": "<string>",
"app_repo_owner": "<string>",
"files": [
{
"content_base64": "<string>",
"path": "<string>"
}
],
"name": "<string>"
}
'{
"errors": [
{
"kind": "<string>",
"name": "<string>",
"errors": [
{
"key": "<string>",
"message": "<string>"
}
]
}
],
"id": "<string>",
"notes": [
"<string>"
],
"pages": [
{
"artboard": "<string>",
"dynamic": true,
"path": "<string>",
"title": "<string>",
"page_id": "<string>"
}
],
"repository": {
"commit_sha": "<string>",
"default_branch": "<string>",
"name": "<string>",
"owner": "<string>",
"reused": true,
"web_url": "<string>"
},
"warnings": [
{
"artboard": "<string>",
"kind": "<string>",
"message": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Import Claude Design Application Api Endpoint
Convert a Claude Design export (the .dc.html artboards, canvas.json and images, a zip of them, or a saved canvas page) into a static site, create a GitHub repository for it under the given credential and owner, commit the site with a Dockerfile, and register the application on that repository. Refusals a caller can act on come back as errors with a 200, in the create route’s shape. The lane ships behind the claude_design_import organisation feature flag: while it is off the route answers 404, like the platform build routes.
import requests
url = "https://platform.ankra.app/api/v1/org/applications/imports/claude-design"
payload = {
"app_repo_credential_name": "<string>",
"app_repo_owner": "<string>",
"files": [
{
"content_base64": "<string>",
"path": "<string>"
}
],
"name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
app_repo_credential_name: '<string>',
app_repo_owner: '<string>',
files: [{content_base64: '<string>', path: '<string>'}],
name: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/org/applications/imports/claude-design', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/applications/imports/claude-design \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"app_repo_credential_name": "<string>",
"app_repo_owner": "<string>",
"files": [
{
"content_base64": "<string>",
"path": "<string>"
}
],
"name": "<string>"
}
'{
"errors": [
{
"kind": "<string>",
"name": "<string>",
"errors": [
{
"key": "<string>",
"message": "<string>"
}
]
}
],
"id": "<string>",
"notes": [
"<string>"
],
"pages": [
{
"artboard": "<string>",
"dynamic": true,
"path": "<string>",
"title": "<string>",
"page_id": "<string>"
}
],
"repository": {
"commit_sha": "<string>",
"default_branch": "<string>",
"name": "<string>",
"owner": "<string>",
"reused": true,
"web_url": "<string>"
},
"warnings": [
{
"artboard": "<string>",
"kind": "<string>",
"message": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
GitHub credential the repository is created and read through.
GitHub user or organisation the repository is created under.
Show child attributes
Show child attributes
Repository name; defaults to a slug of the application name.
The claude.ai/design link the export came from, recorded in the repository README and provenance file.
'private' (default) or 'public'.
Response
Successful Response
Show child attributes
Show child attributes
The registered application id; null when the import was refused (see errors).
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes