Get the release signing key
import requests
url = "https://platform.ankra.app/api/v1/org/release-signing-key"
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/release-signing-key', 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/release-signing-key \
--header 'Authorization: Bearer <token>'{
"configured": true,
"release_signing_key_id": "<string>",
"release_signing_key_pem": "<string>"
}Deploy Targets
Get the release signing key
The public key the organisation’s releases are signed with, which a host pins at registration. Answers configured false while the organisation has no key; a key that could not be read is a 500, never that answer. Requires pipelines.read.
GET
/
api
/
v1
/
org
/
release-signing-key
Get the release signing key
import requests
url = "https://platform.ankra.app/api/v1/org/release-signing-key"
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/release-signing-key', 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/release-signing-key \
--header 'Authorization: Bearer <token>'{
"configured": true,
"release_signing_key_id": "<string>",
"release_signing_key_pem": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.