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

StatusWhat your app does
pendingNothing 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

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

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

Signing in

Signing out

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