Skip to main content
The SDK requires a minimum API level of 26 (Android 8.0 Oreo). Calls on devices below API 26 return silently without an error.

Prerequisites

  • Android API level 26 or higher
  • App ID, Client ID, and Client Secret from the OTPless dashboard

Installation

The SDK is distributed on Maven Central. In your app-level build.gradle, add the dependency:
build.gradle
Check Maven Central for the latest version. Sync your project with Gradle files after adding the dependency.

Add permissions

In your AndroidManifest.xml, add the required and optional permissions:
AndroidManifest.xml

Initialize the SDK

Call initialize in the onCreate() method of your Application class. Pass your App ID, Client ID, and Client Secret as a map.
Application.kt

Integrate with OtplessAuth SDK

If you are already using the OtplessAuth SDK, you can enable device fingerprinting directly on OtplessRequest without calling getIntelligence() manually. Set the deviceFingerprintMode property before calling OtplessSDK.start().

DeviceFingerprintMode values

Fetch device intelligence

getIntelligence() is a suspend function. Call it from a coroutine scope and handle the result. It optionally accepts an UpdateInfo object to attach user-level and event-level context.

Pass additional context (optional)

Pass an UpdateInfo object directly to getIntelligence() to attach user-level and event-level context. This enriches the result and enables more accurate risk scoring.

UpdateInfo fields

Sample response

Success

Error

Response fields