curl --request POST \
--url https://api.example.com/api/policies/prebuilt \
--header 'Content-Type: application/json' \
--data '{
"type": {}
}'{
"policy": {
"id": "<string>",
"name": "<string>",
"type": "<string>",
"prebuilt_type": "<string>",
"rules_count": 123,
"rules": [
{
"rule_id": "<string>",
"name": "<string>",
"type": "<string>",
"description": "<string>",
"severity": {},
"threshold": {},
"time_window": {},
"conditions": {},
"policy_excerpt": "<string>",
"policy_section": "<string>"
}
],
"created_at": "<string>"
},
"error": "<string>",
"message": "<string>",
"details": [
{}
]
}Load a prebuilt policy pack with ready-made compliance rules for AML, GDPR, or SOC2
curl --request POST \
--url https://api.example.com/api/policies/prebuilt \
--header 'Content-Type: application/json' \
--data '{
"type": {}
}'{
"policy": {
"id": "<string>",
"name": "<string>",
"type": "<string>",
"prebuilt_type": "<string>",
"rules_count": 123,
"rules": [
{
"rule_id": "<string>",
"name": "<string>",
"type": "<string>",
"description": "<string>",
"severity": {},
"threshold": {},
"time_window": {},
"conditions": {},
"policy_excerpt": "<string>",
"policy_section": "<string>"
}
],
"created_at": "<string>"
},
"error": "<string>",
"message": "<string>",
"details": [
{}
]
}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.
401 UNAUTHORIZED if not authenticated.
aml - Anti-Money Laundering compliance rulesgdpr - GDPR data protection and privacy rulessoc2 - SOC2 security and operational controlsapplication/json
curl -X POST https://yourdomain.com/api/policies/prebuilt \
-H "Content-Type: application/json" \
-H "Cookie: session=your_session_token" \
-d '{
"type": "aml"
}'
prebuilt for prebuilt policiesaml, gdpr, or soc2structuring, velocity, encryption)CRITICAL, HIGH, or MEDIUM{
"policy": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "AML Compliance Policy",
"type": "prebuilt",
"prebuilt_type": "aml",
"rules_count": 12,
"rules": [
{
"rule_id": "STRUCTURING_PATTERN",
"name": "Transaction Structuring Detection",
"type": "structuring",
"description": "Detects multiple transactions just below reporting threshold",
"severity": "CRITICAL",
"threshold": 10000,
"time_window": 24,
"conditions": {
"AND": [
{
"field": "amount",
"operator": "greater_than",
"value": 9000
},
{
"field": "amount",
"operator": "less_than",
"value": 10000
}
]
},
"policy_excerpt": "31 CFR § 1010.314 - Structured transactions to evade BSA reporting",
"policy_section": "31 CFR § 1010.314"
}
],
"created_at": "2026-02-28T10:30:00Z"
}
}
{
"error": "VALIDATION_ERROR",
"message": "Invalid request body",
"details": [
{
"code": "invalid_enum_value",
"expected": ["aml", "gdpr", "soc2"],
"received": "hipaa",
"path": ["type"],
"message": "Invalid enum value. Expected 'aml' | 'gdpr' | 'soc2', received 'hipaa'"
}
]
}
{
"error": "UNAUTHORIZED",
"message": "Authentication required"
}
{
"error": "INTERNAL_ERROR",
"message": "Failed to create policy"
}
{
"error": "INTERNAL_ERROR",
"message": "Failed to insert rules"
}
is_active: true by defaulttype field is set to prebuilt to distinguish from PDF-ingested policiesprebuilt_type field stores the original pack type for reference