curl -X GET "https://api.example.com/api/compliance/score?scan_id=abc123" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"score": 85,
"total_violations": 42,
"open_violations": 15,
"resolved_violations": 27,
"false_positives": 5,
"by_severity": {
"CRITICAL": 3,
"HIGH": 8,
"MEDIUM": 4
},
"by_rule_type": {
"AML_HIGH_RISK_COUNTRY": 5,
"AML_STRUCTURING": 7,
"KYC_MISSING_INFO": 3
}
}
Retrieve compliance score breakdown by severity and rule type for a specific scan
curl -X GET "https://api.example.com/api/compliance/score?scan_id=abc123" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"score": 85,
"total_violations": 42,
"open_violations": 15,
"resolved_violations": 27,
"false_positives": 5,
"by_severity": {
"CRITICAL": 3,
"HIGH": 8,
"MEDIUM": 4
},
"by_rule_type": {
"AML_HIGH_RISK_COUNTRY": 5,
"AML_STRUCTURING": 7,
"KYC_MISSING_INFO": 3
}
}
Returns the compliance score, violation statistics, and detailed breakdowns by severity and rule type for a given scan. Also includes score history trend data from theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Basit-Ali0/Yggdrasil/llms.txt
Use this file to discover all available pages before exploring further.
scans.score_history JSONB field.
VALIDATION_ERROR, NOT_FOUND, or INTERNAL_ERRORcurl -X GET "https://api.example.com/api/compliance/score?scan_id=abc123" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"score": 85,
"total_violations": 42,
"open_violations": 15,
"resolved_violations": 27,
"false_positives": 5,
"by_severity": {
"CRITICAL": 3,
"HIGH": 8,
"MEDIUM": 4
},
"by_rule_type": {
"AML_HIGH_RISK_COUNTRY": 5,
"AML_STRUCTURING": 7,
"KYC_MISSING_INFO": 3
}
}