Moderation
Test policy (dry run)
Test a moderation policy with mock scores without saving results
post/v1/check/dry-run
Request
- Base URLhttps://api.vettly.dev
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"content": "This is a sample text to moderate",
"policyId": "default",
"requestId": "req_abc123",
"metadata": {
"userId": "user_123",
"source": "chat"
},
"mockScores": {
"hate_speech": 0.9,
"violence": 0.3
}
}Response
Dry run result
Example response
{
"dryRun": true
}Changes
No recorded changes to this operation across all 1 revision of this API.