import requests
url = "https://platform.ankra.app/api/v1/org/applications/imports/claude-design"
payload = {
"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({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 '
{
"files": [
{
"content_base64": "<string>",
"path": "<string>"
}
],
"name": "<string>"
}
'{
"errors": [
{
"kind": "<string>",
"name": "<string>",
"errors": [
{
"key": "<string>",
"message": "<string>"
}
]
}
],
"hosting": "<string>",
"id": "<string>",
"notes": [
"<string>"
],
"pages": [
{
"artboard": "<string>",
"dynamic": true,
"path": "<string>",
"title": "<string>",
"page_id": "<string>"
}
],
"replaced": true,
"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 a Claude Design application
Convert a Claude Design export (the .dc.html artboards, canvas.json and images, the HTML export carrying the support.js runtime and vendor/ scripts, a zip of them, or a saved canvas page) into a static site and register it as an application. By default Ankra hosts the site itself: no repository is created, the application can be deployed at once with no build, and importing the same design again under the same name replaces its content. With save_to_github Ankra instead creates a GitHub repository under the given credential and owner, commits the site with a Dockerfile, and registers 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 = {
"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({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 '
{
"files": [
{
"content_base64": "<string>",
"path": "<string>"
}
],
"name": "<string>"
}
'{
"errors": [
{
"kind": "<string>",
"name": "<string>",
"errors": [
{
"key": "<string>",
"message": "<string>"
}
]
}
],
"hosting": "<string>",
"id": "<string>",
"notes": [
"<string>"
],
"pages": [
{
"artboard": "<string>",
"dynamic": true,
"path": "<string>",
"title": "<string>",
"page_id": "<string>"
}
],
"replaced": true,
"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
Body
Response
Successful Response