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.

  1. Uploadasset

    Your server sends text, an image, a document or a URL. CalmLens stores it as an asset, with your own ID in externalId.

  2. Classifyreport

    CalmLens scores eight categories (sexual, violence, self-harm, harassment, hate, criminal activity, personal information and profanity) and qualifiers such as graphic or fictional.

  3. Decidepolicy

    Your project's moderation policy turns the report into one action: allow, limit, age-restrict, block or purge.

  4. Actstatus

    The asset's classification.moderation.decision becomes allowed, limited, age-restricted, blocked or purged, and a webhook tells your app.

  5. DeliverCDN

    Optional. 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.decision tells your app what to do with it. It is a reviewer's decision when there is one; otherwise, it is the policy's:

StatusWhat your app does
nullNothing yet: the asset is uploading or processing, or processing failed. Keep it unpublished.
allowedShow it.
limitedShow it without amplifying it.
age-restrictedShow it only to viewers who pass your age check.
blockedDon't show it.
purgedDon'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

With retention disabled (retainContent: false), CalmLens classifies content and then deletes it, keeping only the record and report; the asset's content.status becomes removed. Your own storage keeps serving your files.

Set retainContent: 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.

Moderation operations

Beyond automated classification, CalmLens provides the operational controls teams use to run moderation day to day:

CapabilityHow CalmLens handles it
Review queueBuilt-in queue for sampled, all restricted (100%), or uncertain decisions, with dedicated reviewer roles, pre-publication holds (pendingReview), confirmations and overrides. See Human review.
Contextual moderationEarlier conversation messages and speaker IDs inform moderation across text, images, documents, websites, audio and video. See Threaded moderation.
Policy enforcementCustom category actions, contextual allowances and restrictions, mandatory rules, image hash lists, jurisdiction rules and CDN-enforced age gating. See Policies and actions.
Audit trailEvery asset keeps its automated assessment, manualReviews history (reviewer identity, timestamps, decisions and notes) and per-asset timeline; project events are available for 90 days through the events API and webhooks. See Audit trail and retention.
Alert routingIn-app notifications, Slack, email and signed webhooks filtered by event type, severity, moderation category, folder and actor. See Notifications and connectors.
Author historyStore authorId on every upload and filter assets by author and moderation status to review a user's history. See Asset filters.

Everything in one pipeline

Glossary

TermMeaning
ProjectOne app or environment. API keys, connectors and assets belong to a project. Each project uses one of its organisation's policies.
AssetOne piece of submitted content: text, a file or a URL. Use externalId to link it to your own record.
ClassificationFindings grouped by capability in classification: safety categories under moderation, plus labels and any optional detections you requested. See Reading classification results.
CategoryOne 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.
QualifierExtra 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.
PolicyWhat 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.
ActionWhat the policy decides: allow, limit, age-restrict, block or purge.
LensA named image preset for the CDN, such as a 640px-wide image. Lenses don't affect moderation.
ConnectorSends 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.

Last updated

Cookies on CalmLens

We use essential cookies for sign-in and security. With your permission, functional cookies remember your preferences and Google Analytics measures website use and signups. Optional ad measurement cookies link Google ad clicks to signups. Personalised advertising stays off. Manage cookies