Get risk counts grouped by department
curl --request GET \
--url https://api.trycomp.ai/v1/risks/stats/by-department \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/risks/stats/by-department', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/risks/stats/by-department"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)Risks
Get risk counts grouped by department | Comp AI API
Get risk counts grouped by department in Comp AI. Create, update, and report on organizational risks with ownership, departments, and compliance remediation.
GET
/
v1
/
risks
/
stats
/
by-department
Get risk counts grouped by department
curl --request GET \
--url https://api.trycomp.ai/v1/risks/stats/by-department \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/risks/stats/by-department', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/risks/stats/by-department"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)Authorizations
API key for authentication
Response
200 - undefined
Was this page helpful?

