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

# Policies

> Reference for the moderation policies you can enable in a channel and how each one scores content.

A policy is a single rule the API runs against submitted content. Each channel has its own set of enabled policies, and every API response includes a `policies` array with one entry per enabled policy.

```javascript theme={"theme":"nord"}
const toxicityPolicy = response.policies.find(p => p.id === "toxicity");

if (toxicityPolicy?.flagged) {
  // act on the result
}
```

See [Understanding API responses](/content-moderation/acting-on-responses) for the full response shape.

## Policy types

Every policy returns a `type` that tells you how to read its result:

| Type             | What it does                                                                | Example fields            |
| ---------------- | --------------------------------------------------------------------------- | ------------------------- |
| `classifier`     | Scores content against one or more labels and returns a probability         | `probability`, `labels[]` |
| `entity_matcher` | Extracts specific entities (URLs, emails, phone numbers, etc.) from content | `matches[]`, `signals`    |

## Available policies

<CardGroup cols={2}>
  <Card title="Guidelines" icon="pen-ruler" href="/policies/guidelines">
    Define custom rules in natural language. Each guideline is evaluated by an LLM and returned as its own policy.
  </Card>

  <Card title="Privacy" icon="user-shield" href="/policies/privacy">
    Personal information detection, intent to share contact details, and PII masking.
  </Card>

  <Card title="Toxicity & Hate" icon="face-angry" href="/policies/toxicity">
    Toxicity, severe toxicity, and hate-based content including discrimination and extremism.
  </Card>

  <Card title="NSFW" icon="eye-slash" href="/policies/nsfw">
    Sexual content, flirtation, profanity, violence, and self-harm across text, image, video, and audio.
  </Card>

  <Card title="Illicit & Regulated" icon="ban" href="/policies/illicit">
    Drugs, alcohol, firearms, gambling, adult products, cannabis, crypto, and other regulated categories.
  </Card>

  <Card title="Spam & Security" icon="shield-halved" href="/policies/spam">
    Spam, self-promotion, code abuse, phishing, and URL extraction.
  </Card>

  <Card title="URL Risk" icon="link" href="/policies/url-risk">
    Real-time risk scoring for URLs — phishing, malware, brand impersonation, credential harvesting.
  </Card>

  <Card title="Topics" icon="comments" href="/policies/topics">
    Political and religious content for platforms that want to keep discussions on-topic.
  </Card>
</CardGroup>

<Note>
  Insights like `sentiment` and `language` aren't policies — they're returned in the separate `insights` array and don't affect flagging. See [Understanding API responses](/content-moderation/acting-on-responses#use-insights).
</Note>
