Get the personal AI keys policy
import requests
url = "https://platform.ankra.app/api/v1/org/ai-settings/personal-keys"
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/ai-settings/personal-keys', 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/ai-settings/personal-keys \
--header 'Authorization: Bearer <token>'{
"allowed": true
}AI Settings
Get the personal AI keys policy
Whether the organisation’s chat turns and pull request reviews may run on its members’ own AI keys. Allowed until an administrator turns it off; readable with any member’s token.
GET
/
api
/
v1
/
org
/
ai-settings
/
personal-keys
Get the personal AI keys policy
import requests
url = "https://platform.ankra.app/api/v1/org/ai-settings/personal-keys"
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/ai-settings/personal-keys', 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/ai-settings/personal-keys \
--header 'Authorization: Bearer <token>'{
"allowed": true
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Response
The organisation's policy
Whether the organisation's work may run on its members' own AI keys.