import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/demos/build"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/demos/build', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/demos/build \
--header 'Authorization: Bearer <token>'{
"available_images": [
{
"pushed_at": "<string>",
"tag": "<string>"
}
],
"available_tags": [
"<string>"
],
"branch": "<string>",
"candidate_tags": [
"<string>"
],
"component": "<string>",
"components": [
{
"app_subdir": "<string>",
"available_images": [
{
"pushed_at": "<string>",
"tag": "<string>"
}
],
"available_tags": [
"<string>"
],
"container_port": 123,
"container_port_source": "<string>",
"guidance": "<string>",
"image_exists": true,
"image_repository": "<string>",
"image_tag": "<string>",
"name": "<string>",
"image_kind": "<string>",
"image_note": "<string>",
"entry_default": true,
"ingress_path_default": "<string>"
}
],
"error": "<string>",
"guidance": "<string>",
"head_sha": "<string>",
"image_exists": true,
"image_tag": "<string>",
"image_kind": "<string>",
"image_note": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Check Demo Build
Preflight a branch demo: resolve the branch’s head SHA and probe the container registry for a matching image tag. GitHub or registry problems are reported inside the 200 payload’s error and guidance fields, not as HTTP errors. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication).
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/demos/build"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/demos/build', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/demos/build \
--header 'Authorization: Bearer <token>'{
"available_images": [
{
"pushed_at": "<string>",
"tag": "<string>"
}
],
"available_tags": [
"<string>"
],
"branch": "<string>",
"candidate_tags": [
"<string>"
],
"component": "<string>",
"components": [
{
"app_subdir": "<string>",
"available_images": [
{
"pushed_at": "<string>",
"tag": "<string>"
}
],
"available_tags": [
"<string>"
],
"container_port": 123,
"container_port_source": "<string>",
"guidance": "<string>",
"image_exists": true,
"image_repository": "<string>",
"image_tag": "<string>",
"name": "<string>",
"image_kind": "<string>",
"image_note": "<string>",
"entry_default": true,
"ingress_path_default": "<string>"
}
],
"error": "<string>",
"guidance": "<string>",
"head_sha": "<string>",
"image_exists": true,
"image_tag": "<string>",
"image_kind": "<string>",
"image_note": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Response
Successful Response
Whether the branch has a built image and which tag a deploy would run. GitHub or registry problems ride in error and guidance rather than failing the request.
The available_tags entries in the same order, each with the push time that ranks it.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Classifies what code the matched tag's image was built from: branch_head (immutable sha tag of this branch's head), merge_result (a pull_request build of the branch's open PR - the image is the branch merged into its base, not the branch head), or branch (the mutable branch tag a push build refreshes). Absent when no image matched. Mirrors the selected component's classification.
Human-readable caveat for a merge_result image; absent for every other kind.