Skip to main content
Text moderation evaluates text against your configured moderation policies, including any custom categories you have configured. Text judged prohibited is rejected, and the reason is returned on the completed job.

Input

Submit a multipart/form-data request with:

How it’s checked

The text is checked against your policy configuration and every enabled custom category on your account. If it is judged prohibited, the job is rejected with is_prohibited: true and a short reason. When a custom category caused the rejection, the reason names it by slug.

Output

When is_prohibited is true, reason explains why the text was prohibited. Text that passes returns is_prohibited: false with no reason. See decision logic for how the prohibition decision is determined.