How CalmLens works
CalmLens checks user content against your rules and tells your app whether to show it. Every upload follows the same path, from submission to a decision your app reads.
Upload
assetYour server sends text, an image, a document or a URL. CalmLens stores it as an asset, with your own ID in
externalId.Classify
reportCalmLens scores eight categories (sexual, violence, self-harm, harassment, hate, criminal activity, personal information and profanity) and qualifiers such as graphic or fictional.
Decide
policyYour project's moderation policy turns the report into one action: allow, limit, age-restrict, block or purge.
Act
statusThe asset's
classification.moderation.statusbecomes allowed, limited, age-restricted, blocked or purged, and a webhook tells your app.Deliver
CDNOptional. If you kept the content, the CDN serves it and resizes images with lenses. Age-restricted assets require viewerClaims.ageConfirmed=true, including signed URLs and API keys; blocked and purged assets are never served.
Your app's decision
Each asset's classification.moderation.status tells your app what to do with it. It is a reviewer's decision when there is one, otherwise the policy's:
| Status | What your app does |
|---|---|
| pending | Nothing yet: the asset is uploading or processing, or processing failed. Keep it unpublished. |
| allowed | Show it. |
| limited | Show it without amplifying it. |
| age-restricted | Show it only to viewers who pass your age check. |
| blocked | Don't show it. |
| purged | Don't show it. Any stored content is deleted. |
Jurisdiction rules can make the decision stricter for viewers in some countries. Using the decision covers what to show the author and everyone else.
Synchronous or queued
Wait for moderation in the upload request, or queue it and receive the result later. See Waiting for the decision to choose a flow.
Moderation only, or storage and delivery too
By default CalmLens classifies content and then deletes it (keepContentAfterProcessing: false), keeping only the record and report; the asset's content.status becomes removed. Your own storage keeps serving your files.
Set keepContentAfterProcessing: true to let CalmLens host the file as well. Retained content is served from cdn.calmlens.com, subject to the delivery eligibility rules, and lenses resize or convert images on the fly.
Everything in one pipeline
Eight categories, every format
Allowances and restrictions
Replies moderated in context
Upload from anywhere
Upload and media widgets
Text, links and QR codes in images
Audio and videoPreview
Whole websitesPreview
Block known images
Human review samplingNew
Delivery by regionNew
Folders with their own access
AI asset search
Transforms and lenses
Signed webhooks
Slack, email and portal alerts
Organisations for your teamNew
SDKs for server and browser
Works with AI assistantsNew
Glossary
| Term | Meaning |
|---|---|
| Project | One app or environment. API keys, connectors and assets belong to a project. Each project uses one of its organisation's policies. |
| Asset | One piece of submitted content: text, a file or a URL. Use externalId to link it to your own record. |
| Classification | Findings grouped by capability in classification: safety categories under moderation, plus labels and any optional detections you requested. See Reading classification results. |
| Category | One of eight areas of moderation: sexual, violence, self-harm, harassment, hate, criminal activity, and the optional personal information and profanity, which a policy turns on. See Category definitions. |
| Qualifier | Extra detail within a category, such as violence-graphic, violence-fictional or hate-historical. Each qualifier is named after its category. Policies can use qualifiers for exceptions. |
| Policy | What to do with each category: its action, and the allowances and restrictions that adjust its policy score. The action applies once the policy score reaches 50%. See Policies and actions. |
| Action | What the policy decides: allow, limit, age-restrict, block or purge. |
| Lens | A named image preset for the CDN, such as a 640px-wide image. Lenses don't affect moderation. |
| Connector | Sends project events outside CalmLens. A webhook connector POSTs a signed HTTPS request to your server for each event type it subscribes to, such as an asset being uploaded, allowed or blocked. |