curl --request POST \
--url http://co-mind-platform-host/v1/admin/sanitizer/policies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"policies": {
"user_input": {
"INJECTION": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"JAILBREAK": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"BENIGN": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
}
},
"retrieved_content": {
"INJECTION": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"JAILBREAK": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"BENIGN": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
}
},
"pii": {
"default": {
"action": "<string>",
"entities": [
"<string>"
]
},
"contexts": {}
}
},
"tenant_id": "<string>"
}
'{
"user_input": {
"INJECTION": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"JAILBREAK": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"BENIGN": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
}
},
"retrieved_content": {
"INJECTION": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"JAILBREAK": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"BENIGN": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
}
},
"pii": {
"default": {
"action": "<string>",
"entities": [
"<string>"
]
},
"contexts": {}
}
}Update sanitizer policies for a tenant. Tenant isolation enforced. Accepts both JWT and service tokens (hybrid auth).
curl --request POST \
--url http://co-mind-platform-host/v1/admin/sanitizer/policies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"policies": {
"user_input": {
"INJECTION": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"JAILBREAK": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"BENIGN": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
}
},
"retrieved_content": {
"INJECTION": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"JAILBREAK": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"BENIGN": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
}
},
"pii": {
"default": {
"action": "<string>",
"entities": [
"<string>"
]
},
"contexts": {}
}
},
"tenant_id": "<string>"
}
'{
"user_input": {
"INJECTION": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"JAILBREAK": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"BENIGN": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
}
},
"retrieved_content": {
"INJECTION": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"JAILBREAK": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
},
"BENIGN": {
"action": "block",
"threshold": 123,
"alert_admin": true,
"audit": true
}
},
"pii": {
"default": {
"action": "<string>",
"entities": [
"<string>"
]
},
"contexts": {}
}
}Bearer token authentication. Supports two token types:
POST /v1/auth/loginPOST /v1/api-tokens, format: cmnd_<tokenId>.<secret>