---
title: "Create Moderation"
method: POST
path: "/v1/moderations"
tags: ["moderations"]
---

# Create Moderation

`POST /v1/moderations`

OpenAI-compatible moderations endpoint.

Authentication modes:
- Master key + user field: Use specified user (must exist)
- API key + user field: Use specified user (must exist)
- API key without user field: Use the shared "default" user

## Query parameters

- `include_raw` boolean

## Request body

- ModerationRequest — OpenAI-compatible moderation request.
  - `input` union, required — Text, list of texts, or list of content-part dicts to moderate
    - string
    - string[]
    - object[]
  - `model` string, required
  - `user` string, nullable

## Response `200`

Successful Response

- ModerationResponse — Normalized moderation response across providers.
  - `id` string, required
  - `model` string, required
  - `results` ModerationResult[], required
    - `categories` object
    - `category_applied_input_types` object, nullable
    - `category_scores` object
    - `flagged` boolean, required
    - `provider_raw` object, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-20** `d9a87177ce4a` — 1 info
  - the endpoint scheme security `XApiKeyAuth` was added to the API
- **2026-07-14** `0ad4e5f1cc3e` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
- **2026-05-21** `5466fd7ee6c0` — 1 info
  - endpoint added
- **2026-05-21** `cab0e95b9340` — 1 breaking
  - api path removed without deprecation
- **2026-05-20** `bb754bbf3e78` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/mozilla-ai/apis/otari/changes/v1/moderations/post.md)

---

[API](https://skmtc.dev/mozilla-ai/apis/otari.md) · [All operations](https://skmtc.dev/mozilla-ai/apis/otari/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mozilla-ai/otari/revisions/eae05f7dd3cd/schema)
