Skip to main content

Requirements

Installation

Add the Verilock SDK via Swift Package Manager. In Xcode, go to File > Add Package Dependencies and enter:
Or add it to your Package.swift:
Package.swift

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.

Quick Start

Create a KYC session, upload a document and selfie, then submit for verification:

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 async throws. Errors are thrown as VerilockError, a Swift enum with associated values for each error type.

Error Reference

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.