List platform builds (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/builds"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/builds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/{application_id}/builds \
--cookie ankra_session={
"builds": [
{
"id": "<string>",
"component": "<string>",
"head_sha": "<string>",
"ref": "<string>",
"reason": "<string>",
"recipe": "<string>",
"status": "<string>",
"image_ref": "<string>",
"error_class": "<string>",
"error_message": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"created_at": "<string>"
}
],
"capped": true
}{
"detail": "<string>"
}Applications
List platform builds (browser session)
The application’s platform builds, newest first, capped at 50 with the cap reported - a truncated listing that does not say so reads as complete. Answers 404 for every organisation without the platform_builds flag.
GET
/
org
/
applications
/
{application_id}
/
builds
List platform builds (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/builds"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/applications/{application_id}/builds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/applications/{application_id}/builds \
--cookie ankra_session={
"builds": [
{
"id": "<string>",
"component": "<string>",
"head_sha": "<string>",
"ref": "<string>",
"reason": "<string>",
"recipe": "<string>",
"status": "<string>",
"image_ref": "<string>",
"error_class": "<string>",
"error_message": "<string>",
"started_at": "<string>",
"finished_at": "<string>",
"created_at": "<string>"
}
],
"capped": true
}{
"detail": "<string>"
}Authorizations
Browser session. Mutations also require X-Ankra-CSRF.