---
title: "Moderates text content."
method: POST
path: "/api/ai/moderation"
---

# Moderates text content.

`POST /api/ai/moderation`

## Request body

- object
  - `text_content` string, required

## Response `200`

OK

- ModerationResponse
  - `id` string — The unique identifier for the moderation request.
  - `status` string — The status of the moderation process.
  - `timestamp` integer — The timestamp when the moderation request was processed.
  - `content` object — The object containing the moderation results for different categories. The scores represent the likelihood of each category present in the content.
    - `sexual` string, float — The score for sexual content moderation.
    - `hate` string, float — The score for hate speech content moderation.
    - `violence` string, float — The score for violence content moderation.
    - `self-harm` string, float — The score for self-harm content moderation.
    - `sexual/minors` string, float — The score for sexual content involving minors moderation.
    - `hate/threatening` string, float — The score for threatening hate speech content moderation.
    - `violence/graphic` string, float — The score for graphic violence content moderation.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Invalid API Key or Organization Key
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/worqhat/apis/worqhat-ai-api-endpoints.md) · [All operations](https://skmtc.net/worqhat/apis/worqhat-ai-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/worqhat/worqhat-ai-api-endpoints/revisions/a1044e79bd85/schema)
