curl -X GET "https://api.example.com/api/violations/cases?scan_id=abc123" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"cases": [
{
"account_id": "ACC-2024-001",
"violation_count": 3,
"max_severity": "CRITICAL",
"top_rule": "SAR_THRESHOLD",
"total_amount": 45000,
"violations": [
{
"id": "viol_789xyz",
"rule_id": "SAR_THRESHOLD",
"severity": "CRITICAL",
"amount": 15000,
"explanation": "Transaction exceeds SAR filing threshold",
"status": "pending"
},
{
"id": "viol_790abc",
"rule_id": "VELOCITY_CHECK",
"severity": "HIGH",
"amount": 20000,
"explanation": "Unusual transaction velocity detected",
"status": "pending"
},
{
"id": "viol_791def",
"rule_id": "ROUND_AMOUNT",
"severity": "MEDIUM",
"amount": 10000,
"explanation": "Suspicious round amount pattern",
"status": "approved"
}
]
},
{
"account_id": "ACC-2024-002",
"violation_count": 1,
"max_severity": "HIGH",
"top_rule": "CTR_MISSING",
"total_amount": 12000,
"violations": [
{
"id": "viol_792ghi",
"rule_id": "CTR_MISSING",
"severity": "HIGH",
"amount": 12000,
"explanation": "Currency transaction report not filed",
"status": "pending"
}
]
}
],
"total_cases": 2,
"total_violations": 4,
"compliance_score": 72.5
}
Get violations grouped by account or entity with aggregated metrics
curl -X GET "https://api.example.com/api/violations/cases?scan_id=abc123" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"cases": [
{
"account_id": "ACC-2024-001",
"violation_count": 3,
"max_severity": "CRITICAL",
"top_rule": "SAR_THRESHOLD",
"total_amount": 45000,
"violations": [
{
"id": "viol_789xyz",
"rule_id": "SAR_THRESHOLD",
"severity": "CRITICAL",
"amount": 15000,
"explanation": "Transaction exceeds SAR filing threshold",
"status": "pending"
},
{
"id": "viol_790abc",
"rule_id": "VELOCITY_CHECK",
"severity": "HIGH",
"amount": 20000,
"explanation": "Unusual transaction velocity detected",
"status": "pending"
},
{
"id": "viol_791def",
"rule_id": "ROUND_AMOUNT",
"severity": "MEDIUM",
"amount": 10000,
"explanation": "Suspicious round amount pattern",
"status": "approved"
}
]
},
{
"account_id": "ACC-2024-002",
"violation_count": 1,
"max_severity": "HIGH",
"top_rule": "CTR_MISSING",
"total_amount": 12000,
"violations": [
{
"id": "viol_792ghi",
"rule_id": "CTR_MISSING",
"severity": "HIGH",
"amount": 12000,
"explanation": "Currency transaction report not filed",
"status": "pending"
}
]
}
],
"total_cases": 2,
"total_violations": 4,
"compliance_score": 72.5
}
Retrieve violations organized by account/entity with summary statistics. Useful for identifying high-risk accounts with multiple violations.Documentation 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.
CRITICAL, HIGH, MEDIUMcurl -X GET "https://api.example.com/api/violations/cases?scan_id=abc123" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"cases": [
{
"account_id": "ACC-2024-001",
"violation_count": 3,
"max_severity": "CRITICAL",
"top_rule": "SAR_THRESHOLD",
"total_amount": 45000,
"violations": [
{
"id": "viol_789xyz",
"rule_id": "SAR_THRESHOLD",
"severity": "CRITICAL",
"amount": 15000,
"explanation": "Transaction exceeds SAR filing threshold",
"status": "pending"
},
{
"id": "viol_790abc",
"rule_id": "VELOCITY_CHECK",
"severity": "HIGH",
"amount": 20000,
"explanation": "Unusual transaction velocity detected",
"status": "pending"
},
{
"id": "viol_791def",
"rule_id": "ROUND_AMOUNT",
"severity": "MEDIUM",
"amount": 10000,
"explanation": "Suspicious round amount pattern",
"status": "approved"
}
]
},
{
"account_id": "ACC-2024-002",
"violation_count": 1,
"max_severity": "HIGH",
"top_rule": "CTR_MISSING",
"total_amount": 12000,
"violations": [
{
"id": "viol_792ghi",
"rule_id": "CTR_MISSING",
"severity": "HIGH",
"amount": 12000,
"explanation": "Currency transaction report not filed",
"status": "pending"
}
]
}
],
"total_cases": 2,
"total_violations": 4,
"compliance_score": 72.5
}
total_amount may require investigation.
GET /api/violations/cases?scan_id=abc123&severity=CRITICAL
total_cases and compliance_score to display scan-level metrics.
max_severity is determined using this hierarchy:
top_rule corresponds to the most severe violation for that account.
cases array includes all accounts (even those with only false positives)total_cases excludes accounts with only false positivestotal_violations excludes false positive violations