List risk-owner acceptance events
curl --request GET \
--url https://api.trycomp.ai/v1/risks/{id}/acceptances \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/risks/{id}/acceptances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/risks/{id}/acceptances"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "rska_abc123def456",
"acceptedById": "mem_abc123def456",
"acceptedByName": "Jane Doe",
"notes": "Residual risk reviewed at the Q2 risk review.",
"residualLikelihood": "unlikely",
"residualImpact": "minor",
"level": "low",
"levelLabel": "Low",
"stale": false,
"createdAt": "2023-11-07T05:31:56Z"
}
],
"authType": "api-key",
"authenticatedUser": {
"id": "usr_def456ghi789",
"email": "user@example.com"
}
}{
"message": "Invalid or expired API key"
}{
"message": "You do not have access to this risk"
}{
"message": "Risk with ID abc123 not found in organization org_abc123def456"
}{
"message": "Internal server error"
}Risks
List risk-owner acceptance events | Comp AI API
Returns the residual-risk acceptance history for a risk, newest first. Each event freezes the residual rating at acceptance and carries a stale flag set.
GET
/
v1
/
risks
/
{id}
/
acceptances
List risk-owner acceptance events
curl --request GET \
--url https://api.trycomp.ai/v1/risks/{id}/acceptances \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/risks/{id}/acceptances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/risks/{id}/acceptances"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "rska_abc123def456",
"acceptedById": "mem_abc123def456",
"acceptedByName": "Jane Doe",
"notes": "Residual risk reviewed at the Q2 risk review.",
"residualLikelihood": "unlikely",
"residualImpact": "minor",
"level": "low",
"levelLabel": "Low",
"stale": false,
"createdAt": "2023-11-07T05:31:56Z"
}
],
"authType": "api-key",
"authenticatedUser": {
"id": "usr_def456ghi789",
"email": "user@example.com"
}
}{
"message": "Invalid or expired API key"
}{
"message": "You do not have access to this risk"
}{
"message": "Risk with ID abc123 not found in organization org_abc123def456"
}{
"message": "Internal server error"
}Authorizations
API key for authentication
Path Parameters
Risk ID
Example:
"rsk_abc123def456"
Was this page helpful?

