Skip to main content
The Tuteliq Kotlin SDK provides a coroutine-based client for the Tuteliq child safety API. It supports Android 7.0+ (API 24) and any JVM 11+ target.

Installation

Add the dependency to your build.gradle.kts:
Or with Gradle Groovy:

Initialize the client

Never hardcode API keys in source code. Use BuildConfig fields, the Android Keystore, or a secrets manager.

Detect unsafe content

Scan a single text input for harmful content across all KOSA categories.

Detect grooming patterns

Analyze a conversation history for grooming indicators.

Analyze emotions

Evaluate emotional well-being from conversation text.

Analyze voice

Upload an audio file for transcription and safety analysis.

Coroutine support

All SDK methods are suspend functions designed for Kotlin coroutines.
The SDK uses OkHttp under the hood and integrates with any coroutine scope — viewModelScope, lifecycleScope, or custom scopes.

Fraud detection and safety extended

These methods cover financial exploitation, romance scams, and coercive behaviour targeting minors. Other endpoints — detectAppFraud, detectMuleRecruitment, detectGamblingHarm, detectCoerciveControl, and detectRadicalisation — follow the same call pattern shown here.

Detect social engineering

Identify manipulation tactics designed to trick a child into disclosing information or taking unsafe actions.

Detect romance scam

Analyze conversation text for romantic manipulation patterns that may indicate an adult posing as a peer.

Detect vulnerability exploitation

Detect attempts to identify and target emotional or situational vulnerabilities in a child.

Analyse multiple texts in one request

Run any supported detection across multiple texts in a single API call to reduce round-trips.
analyseMulti is billed per individual input × detection combination, not per request.

Error handling

The SDK throws typed exceptions that you can catch and inspect.

Configuration options

Next steps

API Reference

Explore the full API specification.

Swift SDK

See the Swift SDK guide.