This is a Unreal API+ only request
POST /moderate-text
Detects inappropriate language, mass mentions, and more. Uses AI
| Name | Value |
|---|
| apikey | 28-Character API Key |
Body
| Name | Type | Description |
|---|
| text | string | The text to moderate |
Response
200: OK
400: Bad Request
401: Unauthorized
429: Too Many Requests
{
"safe": false,
"results": {
"aiFlags": [
{ "category": "toxicity", "confidence": 0.96 },
{ "category": "obscene", "confidence": 0.93 },
{ "category": "insult", "confidence": 0.91 }
],
"issuesFound": [
"AI flagged \"toxicity\" (96%)",
"AI flagged \"obscene\" (93%)",
"AI flagged \"insult\" (91%)"
]
}
}
Error
You didn’t provide a valid:Check response.error Error
You didn’t provide a working apikey.
You sent too many requests too quickly. Try again later.
This also happens when the AI rate limits.