SDKs

Use a CalmLens SDK to upload content, read moderation results and manage assets from your application. Keep your API key on your server.

Choose your language

LanguageGuideTesting
JavaScript and TypeScriptJavaScript SDKTesting
PythonPython SDKTesting
GoGo SDKTesting
RustRust SDKTesting
RubyRuby SDKTesting
JavaJava SDKTesting
PHPPHP SDKTesting

Make your first request

Follow the quick start to moderate a comment. General guides show examples in your chosen language and remember it.

For direct HTTP integrations, use the API reference. For offline tests, see testing moderation.

See complete apps

Examples shows example apps built with the SDKs, including the Calmgram live demo.

Versioning and support

SDK versions follow semantic versioning : a major version for breaking changes, a minor version for new features and a patch version for fixes. While an SDK's version is 0.x, a breaking change bumps the minor version instead, and the SDK's changelog lists it. The SDKs are released together under one version number, and the CLI shares the JavaScript SDK's version.

The SDKs track the public API, which is versioned in its path (/v1). Support for new endpoints, fields or options arrives in a minor release. Removing or renaming a method, type or option, or changing its signature, is a breaking change for that SDK, even while the API stays at /v1. A release check compares each SDK's public methods and types with its previous release and refuses a version bump too small for the change.

Earlier SDK versions call the same /v1 API and keep working with it. There is no fixed support window for earlier versions, and fixes and new features are released in the latest version only, so upgrade regularly.

Each SDK's changelog lists every release:

SDKChangelog
JavaScript and the CLIjavascript/CHANGELOG.md 
Pythonpython/CHANGELOG.md 
Gogo/CHANGELOG.md 
Rustrust/CHANGELOG.md 
Rubyruby/CHANGELOG.md 
PHPphp/CHANGELOG.md 
Javajava/CHANGELOG.md 

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