> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unrealapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Moderate text

<Warning>This is a Unreal API+ only request</Warning>

`POST` `/moderate-text`

Detects inappropriate language, mass mentions, and more. Uses AI

## Headers

| Name   | Value                |
| ------ | -------------------- |
| apikey | 28-Character API Key |

## Body

| Name | Type     | Description          |
| ---- | -------- | -------------------- |
| text | string\* | The text to moderate |

## Response

<Tabs>
  <Tab title="200: OK">
    ```json theme={null}
    {
      "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%)"
        ]
      }
    }
    ```
  </Tab>

  <Tab title="400: Bad Request">
    **Error**\
    You didn't provide a valid:

    * text

    Check `response.error`
  </Tab>

  <Tab title="401: Unauthorized">
    **Error**\
    You didn't provide a working apikey.
  </Tab>

  <Tab title="429: Too Many Requests">
    You sent too many requests too quickly. Try again later.
    This also happens when the AI rate limits.
  </Tab>
</Tabs>
