Moderation
Check content for moderation
Send user-generated content (text, image, or video) and get an allow/flag/block decision based on your policy. This is the primary endpoint for content moderation. Returns category scores, a decision action, and a decision ID for audit trail.
post/v1/check
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"
}
}Response
Moderation decision
Example response
{
"decisionId": "dec_abc123",
"categories": [
{
"category": "hate_speech",
"score": 0.85,
"triggered": true
}
],
"provider": "openai",
"latency": 245,
"cost": 0.001,
"requestId": "req_abc123"
}Changes
No recorded changes to this operation across all 1 revision of this API.