Reveal an organisation variable value
import requests
url = "https://platform.ankra.app/api/v1/org/variables/{variable_name}/value"
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/variables/{variable_name}/value', 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/variables/{variable_name}/value \
--header 'Authorization: Bearer <token>'{
"name": "<string>",
"value": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Variables
Reveal an organisation variable value
Returns one variable’s stored value, including a secret one. Needs variables.write, and every reveal is recorded in the organisation audit log. Answers 404 when it does not exist.
GET
/
api
/
v1
/
org
/
variables
/
{variable_name}
/
value
Reveal an organisation variable value
import requests
url = "https://platform.ankra.app/api/v1/org/variables/{variable_name}/value"
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/variables/{variable_name}/value', 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/variables/{variable_name}/value \
--header 'Authorization: Bearer <token>'{
"name": "<string>",
"value": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.