Installation
Add the dependency to yourbuild.gradle.kts:
Initialize the client
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 aresuspend 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.