Policies and actions
Each project uses one of your organisation's policies, covering all eight moderation categories. For each category, choose an action, then add allowances or restrictions. These adjust the category score into a policy score, which decides whether the category's action applies.
Start from a built-in policy
Four built-in policies cover common kinds of community: General, Kids, Learning and support and Teen-safe. Each page explains the standard the policy aims for and how it treats each kind of content.
Key terms
| Term | Meaning |
|---|---|
| Qualifier | A finding nested under a category that describes what the content is, such as Threat of violence or Graphic detail, or how it is framed, such as Historical or Reporting. Rules act on qualifiers. See Category definitions. |
| Some and All | Some: the qualifier is present in some of the category's qualifying content. All: it covers every qualifying instance in the category. Restrictions read Some; allowances read All. See Some and All. |
| Wholly | Covered with All: “wholly historical violence” means every violent instance in the content is historical. A context that covers only part of the content leaves the rest with the category's action. |
| Allowance | A rule that softens the category's action for content a qualifier wholly covers. |
| Restriction | A rule that applies its action wherever a qualifier is present, even where an allowance would otherwise soften the decision. |
| Preset | The released settings of a built-in policy. Each release has a preset version; see Preset versions and updates. |
| Mandatory rule | A rule CalmLens applies to every policy, such as blocking sexual content involving a child. It can't be edited or removed. See Mandatory rules. |
| Not moderated | A category whose action is Allow and that has no restrictions, so only mandatory rules can act on it. Unless a mandatory rule uses it, text isn't assessed for it: the report marks it not evaluated with reason not-supported, and moderation.categories leaves it out. |
| Pending version | A version of a record in your own app, such as an edited comment, that your app keeps unpublished until its moderation decision arrives. See Choose your integration. |
Build a custom policy
Create and assign a policy in Portal › Moderation policies. Start from a preset, adjust the categories for your community, and test representative content before applying it.
For example, to allow non-graphic historical violence, use separate Violence allowances for Historical, Reporting or documentary, and Educational, with a restriction for Graphic detail. Test both graphic history and a historical passage beside a current threat. Allowing violence never exempts hate or harassment.
Actions
When several categories act, the strongest action wins: purge, block, age-restrict, limit, then allow.
| Action | Portal | Status | Result |
|---|---|---|---|
| allow | Allow | allowed | Take no action for this category. Moderation still runs. |
| limit | Limit | limited | Delivered normally. Your app reduces its reach, as described in Limited assets. |
| age-restrict | Age-restrict | age-restricted | Not served from its plain URL; your app serves it to the viewers it allows. See Age-restricted assets. |
| block | Block | blocked | Block delivery. Retain content for review only if keepContentAfterProcessing: true. |
| purge | Purge | purged | Block delivery and delete content. Keep the asset record and report. |
To moderate a category that is not moderated, choose an action other than Allow or add a restriction. Profanity and Personal information work like every other category; the built-in policies decide whether each is moderated.
Each outcome emits its status event, such as asset.age-restricted or asset.blocked; connectors choose where notifications go. See Asset lifecycle for stored statuses, retention and reviewer decisions.
These actions set the automated status. A reviewer's decision takes precedence: for example, allowing a blocked asset changes classification.moderation.status but leaves the policy assessment in classification.moderation unchanged. Retention and access checks still apply, and a review cannot restore purged content. See Reports and reviews, and Human review to have people check a sample of automated decisions.
Allowances and restrictions
| Rule | Evidence used | Permitted action |
|---|---|---|
| Allowance | All: coverage of the category's qualifying content. More coverage lowers the policy score. | Softer than the category action. |
| Restriction | Some: presence of a restricted finding. Can override an allowance if its calculated score reaches 50%. | Any action except allow. One weaker than the category action applies only where an allowance would otherwise soften the decision. |
For example, a block category can allow history with allow or age-restrict, while restricting graphic detail with block or purge. A restriction can also be weaker than the category action: a graphic-detail restriction set to age-restrict age-restricts graphic history that the allowance would otherwise allow, while uncovered violence keeps the category action. A category set to allow can have restrictions but no softer allowance.
Any of a category's qualifiers can be used in either kind of rule. Each category permits up to 50 allowances and 50 restrictions; two rules of the same kind cannot have identical conditions. Changing the category action can invalidate allowances that are no longer softer than it.
Rules require all selected qualifiers on the same content (AND), such as requests specifically asking for credentials. Create separate rules for OR. A password in one passage and a request for a phone number in another do not meet that combination.
A restriction's UNLESS condition excludes content with a particular qualifier from that rule. A restriction for threats except reporting still restricts a live threat beside a separate police report. The exclusion only changes that rule; the category action and other rules still apply.
Separate allowances can jointly cover mixed content. History and teaching allowances can cover different passages, but cannot excuse an uncovered current threat. An allowance only softens actions stronger than its own: an allowance set to limit can lower a Block to Limit, but doesn't count towards allowing the content outright. Restricting graphic detail without an exclusion still overrides educational or reporting allowances.
See Some and All for coverage, presence and overlapping qualifiers.
Mandatory rules
Global mandatory rules apply to every policy, including custom policies. They cannot be edited or removed and take precedence over category settings.
Jurisdictions served
Jurisdiction rules add regional restrictions: the jurisdictions with legal rules apply to every project, and the EU standard applies when your project opts in.
Policy score
The policy score measures how strongly the findings meet your rules after allowances and restrictions. It does not change the original category score. Every policy acts on a category once its policy score reaches 50%; the threshold is the same for every category and policy, and is an operating point, not a 50% probability of correct classification. To act on more or less content, change the category's action, allowances and restrictions. For example, a historical attack can be allowed, graphic detail can override that allowance, and a separate current threat remains uncovered. When rules call for different actions, the strongest applicable action wins.
Testing a draft
Test changes in Test the draft before saving. Compare the draft with the saved policy using example findings and recent assets.
Example findings and recent assets reuse evidence; they do not reclassify content. A changed combination or exception may need evidence an older report does not contain. The playground asks for a fresh check before showing a decision in that case. A sample check uses your current draft without saving it or changing the project policy. Extra condition assessments count toward classification usage.
Understand a result
These examples use illustrative findings for an image under General, not live classifications. Each example shows the qualifiers and explains the decision. General allows a non-graphic attack even without historical framing, and allows graphic violence in text, so the same findings in text, or in a policy without those allowances, can lead to a different decision.
Historical attack
A historical account of an attack is covered by the Historical allowance: the attack and its historical framing are both All.
Violence
0%Below threshold, Threshold 50%
Physical attacks, graphic bodily harm, death, threats against others, and planning or encouraging physical violence. View definition
| Qualifier | Found |
|---|---|
| Physical attack | All 100%, Allowed by the policy |
| Historical | All 100%, Allowed by the policy |
History with graphic detail
The Historical allowance still covers the attack, but the Graphic detail restriction overrides it and age-restricts the content.
Violence
90%At or above threshold, Threshold 50%
Physical attacks, graphic bodily harm, death, threats against others, and planning or encouraging physical violence. View definition
| Qualifier | Found |
|---|---|
| Physical attack | All 100%, Allowed by the policy |
| Graphic detail | Some 100%, Restricted by the policy |
| Historical | All 100%, Allowed by the policy |
History beside a current threat
Some historical content is present, but the allowance does not cover the current threat. The threat is uncovered, so Violence keeps its Block action.
Violence
90%At or above threshold, Threshold 50%
Physical attacks, graphic bodily harm, death, threats against others, and planning or encouraging physical violence. View definition
| Qualifier | Found |
|---|---|
| Threat of violence | Some 100% |
| Historical | Some 100% |
Inspect category findings and the decision explanation in Portal › Assets. Check other categories when investigating an unexpected action. See Reading classification results for unavailable evidence and input-type limits.
The asset view explains the decision using the actions, named allowances and restrictions saved in classification.moderation.categories. Qualifier explanations in the category details are generated from this snapshot when displayed, so changing a policy does not change the explanation of an earlier decision. Run a new check to compare the current policy with a previous result.
How policies apply
Policies belong to your organisation and can be shared by its projects. Each organisation starts with the four built-in policies, and a new project uses the one you choose when you create it, with General preselected. A built-in policy follows automatic updates until you save changes to it. To give one project different rules, duplicate the policy and assign the copy. A built-in policy you delete isn't recreated. Manage policies and assign them to projects in Portal › Moderation policies.
An upload preset can name its own policy, so different parts of one app can follow different rules: uploads through it are moderated with that policy instead of the project's.
Edits remain drafts until saved. Saving a shared policy affects every project using it, including projects whose upload presets name it. Duplicate creates a separate policy, including its preset baseline when applicable. A policy can be deleted only when no project or upload preset uses it.
Changes apply to future checks. Existing asset decisions are not reprocessed.
Preset versions and updates
All saved policies appear in one list in Portal › Moderation policies. Each saved copy of a built-in policy records its preset version and original settings separately from its own revisions.
Resetting a copy to its default restores the settings of the saved preset version; it does not adopt a newer release. The portal shows the differences and every affected project before you confirm, and a reset can't be combined with an unsaved draft.
When a newer preset is released, the policy page shows it in the preset changelog. Copies that still match their saved baseline can be updated to the latest version, with the setting differences and affected projects shown before confirmation. Customized copies keep their settings; reset to the saved baseline first if you want to adopt the latest preset. Reset and update keep your policy’s name and description.
Automatic updates
While one of your organisation's built-in policies follows automatic updates, each new preset version applies as soon as it's released. An owner switches automatic updates on or off for each of these policies in Portal › Moderation policies. Until its first save, a built-in policy follows them; the first save pins it to its preset version with your changes, for every project using it. Turning them off keeps the current settings and pins them to the current preset version, so later releases apply only when you update the policy. Turning them on for a saved copy adopts the latest preset version and its name; if the copy's settings or name differ, you see the differences and confirm that your changes are replaced first. Projects keep using the same policy either way.
Manage policies in code
The policies API lists, creates, changes and deletes your organisation's policies, and chooses the one a project uses, so you can keep policies in your own repository and apply them from a deployment script. Requests go through a project: its API key needs policies:read to read policies and policies:write to change them. Through a project's key you can change or delete only policies that no other project uses; change shared policies in Portal › Moderation policies.
For example, copy the Kids built-in policy, describe it and make it the project's policy:
const { items: policies } = await client.policies.list();
const assigned = await client.policies.retrieveAssigned();
const kids = await client.policies.create({ presetId: "children-platform", name: "Kids section" });
const updated = await client.policies.update({
policyId: kids.id,
revision: kids.revision,
description: "Stricter rules for the kids section",
});
await client.policies.assign({ policyId: updated.id });
Each policy has a revision. Send it with every change; a policy someone changed since you read it is refused with 409 policy/revision-conflict, so retrieve it again and decide whether to apply your change.
| Task | Request |
|---|---|
| List the organisation's policies | GET / |
| Get one policy | GET / |
| Get the policy the project moderates with | GET / |
Create a policy from settings, or a copy of a built-in preset with presetId | POST / |
| Change a policy's name, description or settings | PATCH / |
Reset a pinned or copy policy to the settings of its preset version | POST / |
Move an unchanged pinned or copy policy to the latest preset version | POST / |
| Switch automatic updates on or off for one of the organisation's built-in policies | PUT / |
| Choose the project's policy | PUT / |
| Delete a policy no project or upload preset uses | DELETE / |
A policy's preset.mode says how it relates to its preset. The organisation's own built-in policies, one for each preset, are live while they follow automatic updates and pinned once saved or switched off. A copy of a preset is copy: it keeps the preset version it started from as its reset baseline and never follows automatic updates. A policy created from settings has no preset.