check proxy access
import requests
url = "https://platform.ankra.app/api/v1/access/check"
payload = {
"policy": {
"hostname": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roles": ["<string>"]
},
"session": "<string>"
}
headers = {
"X-Ankra-Access-Token": "<x-ankra-access-token>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Ankra-Access-Token': '<x-ankra-access-token>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
policy: {
hostname: '<string>',
organisation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
roles: ['<string>']
},
session: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/access/check', 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/access/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Ankra-Access-Token: <x-ankra-access-token>' \
--data '
{
"policy": {
"hostname": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roles": [
"<string>"
]
},
"session": "<string>"
}
'Access Gate
check proxy access
Validate the host-bound opaque session and check live organisation membership, SSO verification and exact organisation-wide role grants.
POST
/
api
/
v1
/
access
/
check
check proxy access
import requests
url = "https://platform.ankra.app/api/v1/access/check"
payload = {
"policy": {
"hostname": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roles": ["<string>"]
},
"session": "<string>"
}
headers = {
"X-Ankra-Access-Token": "<x-ankra-access-token>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Ankra-Access-Token': '<x-ankra-access-token>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
policy: {
hostname: '<string>',
organisation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
roles: ['<string>']
},
session: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/access/check', 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/access/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Ankra-Access-Token: <x-ankra-access-token>' \
--data '
{
"policy": {
"hostname": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roles": [
"<string>"
]
},
"session": "<string>"
}
'