Get obligations for a built-in role
curl --request GET \
--url https://api.trycomp.ai/v1/roles/built-in/{name}/obligations \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/roles/built-in/{name}/obligations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/roles/built-in/{name}/obligations"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"name": "<string>",
"obligations": {
"compliance": true
}
}Roles
Get obligations for a built-in role | Comp AI API
Returns the effective obligations for a built-in role (owner, admin, auditor, employee, contractor) — DB override if present, else the hardcoded default.
GET
/
v1
/
roles
/
built-in
/
{name}
/
obligations
Get obligations for a built-in role
curl --request GET \
--url https://api.trycomp.ai/v1/roles/built-in/{name}/obligations \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/roles/built-in/{name}/obligations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/roles/built-in/{name}/obligations"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"name": "<string>",
"obligations": {
"compliance": true
}
}Was this page helpful?

