Authorizations
Headers
Body
application/json
messagesobject[]requiredArray of chat messages to analyze for policy violations. Required
Show child attributesHide child attributes
external_idstring | nullOptional external identifier for tracking this session. Useful for correlating results with your own systems
include_contextboolean | nullInclude previous conversation context associated with the same external_id. Default: false.
include_policy_namesboolean | nullInclude human-readable policy names in the response. Default: false.
metadataobjectOptional metadata object for additional info about session.
policiesstring[] | nullOptional list of specific policy IDs to check. If omitted, all deployment policies are used.
Response
Success
internal_idstringrequiredUnique internal identifier for this check
violationbooleanrequiredWhether any policy violations were detected
violationsobjectrequiredMap of policy IDs to policy status objects containing violation and optional name
Show child attributesHide child attributes
violations.{key} objectShow child attributesHide child attributes
violations.{key}. violation booleanrequiredWhether a violation was detected for this policy
violations.{key}. violation_source enum<string>[]requiredSources where violations were detected (includes only triggered violations)
Available options:
text,imageviolations.{key}. name string | nullHuman-readable policy name (only present if include_policy_names=true)
external_idstring | nullOptional external identifier provided by client
Bad Request