Skip to main content

Requirements

Installation

Add the Verilock SDK to your module-level build.gradle.kts:
build.gradle.kts
Make sure you have Maven Central in your project-level settings:
settings.gradle.kts

Configuration

Create a Verilock client with your API key. All API calls are made through this instance.
You can customise the client with optional parameters:
Keep your API key secure. Never embed production keys in client-side code or commit them to version control. All API calls should originate from your backend or a secure context.

Quick Start

Create a KYC session, upload a document and selfie, then submit for verification. All methods are suspend functions.

Coroutine Integration

All SDK methods are suspend functions. Call them from a coroutine scope such as viewModelScope or lifecycleScope.

KYC Sessions

The sessions resource manages the full verification lifecycle.

AML Screening

Screen individuals against global sanctions, PEP, and watchlists.

Transaction Monitoring

Screen transactions for suspicious activity.

Premium Features

The SDK provides access to premium verification services through dedicated resource properties.
Premium features require an active subscription. See the Premium Features docs for details.

Error Handling

All methods are suspend functions that throw VerilockException subclasses. Use try/catch to handle errors.

Exception Hierarchy

All exceptions extend VerilockException, which provides code, statusCode, and body properties.
The SDK automatically retries requests on 429 and 5xx errors up to maxRetries times (default: 2) with exponential backoff. You only need to handle errors that persist after retries.