Cygnal
Monitor
Monitors content for policy violations. This endpoint is used to check if the provided text contains harmful content or violates a given set of policies.
Request Body
application/json
text?Text|Text
messages?||Messages
categories?|Categories
rules?|Rules
reasoning_mode?Reasoning Mode|Reasoning Mode
Default
"off"policy_id?Policy Id|Policy Id
policy_ids?|Policy Ids
scanner_configs?|Scanner Configs
Response Body
application/json
application/json
curl -X POST "https://api.grayswan.ai/cygnal/monitor" \ -H "Content-Type: application/json" \ -d '{}'null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}