start proxy access
import requests
url = "https://platform.ankra.app/api/v1/access/requests"
payload = {
"policy": {
"hostname": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roles": ["<string>"]
},
"challenge": "<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>']
},
challenge: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/access/requests', 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/requests \
--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>"
]
},
"challenge": "<string>"
}
'{
"authorize_path": "<string>"
}Access Gate
start proxy access
Register an exact-host private service sign-in using a dedicated trusted relay credential. The browser cannot supply the policy or callback host.
POST
/
api
/
v1
/
access
/
requests
start proxy access
import requests
url = "https://platform.ankra.app/api/v1/access/requests"
payload = {
"policy": {
"hostname": "<string>",
"organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"roles": ["<string>"]
},
"challenge": "<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>']
},
challenge: '<string>'
})
};
fetch('https://platform.ankra.app/api/v1/access/requests', 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/requests \
--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>"
]
},
"challenge": "<string>"
}
'{
"authorize_path": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Response
Sign-in continuation