Didit Android SDK: Kotlin KYC Integration Guide for 2026
Didit's Android SDK (me.didit:didit-sdk 4.15.4) adds ID capture, liveness and NFC to Kotlin apps: server-side session, token in the app, decision by webhook. $0.33 per full KYC check.

Contents
In this guide
Jump to the part you need.
This guide is for Android teams that want Didit verification inside a native Kotlin app rather than a WebView. A full KYC check costs $0.33 on the public price list. The Android SDK, Workflow Orchestrator and MCP server are free, and the sandbox is free on every plan. Two caveats: keep the API key on your server, and the biometric consent step for Illinois, Texas and Colorado needs native SDK 4.10.0 or later.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Item | Detail |
|---|---|
| What it does | Native verification flow inside a native Kotlin app: document capture, liveness, face match, NFC ePassport reading, 54 capture and UI languages |
| Artifact | me.didit:didit-sdk from a custom Maven repository, latest 4.15.4 |
| Minimum Android | API 23 (Android 6.0). ML auto-detection on API 24 and above |
| Decision path | Your backend creates the session and holds the API key. The app runs the SDK with the session token. Didit sends the webhook to your backend, the backend verifies the webhook signature, sets access, and the app displays that state |
| Price per full KYC check | $0.33 = ID document $0.15 + passive liveness $0.10 + face match 1:1 $0.05 + device and IP analysis $0.03 |
| SDK, Workflow Orchestrator, MCP server | The Android SDK, Workflow Orchestrator and MCP server are free |
| Free plan | $10.00 of credit each month for eligible organizations, sandbox free and unlimited |
| Consent | The biometric consent step needs native SDK 4.10.0 or later. 4.15.4 is current |
| Reference | Android SDK guide, native SDK overview |
What the Didit Android SDK gives you
The SDK is the identity verification build, shipped separately from Didit Authentication modules. Your backend creates a session, the app opens the verification screen with a session token, and we send status updates by webhook. The webhook includes a decision body for Approved, Declined, In Review and Abandoned. Your backend can fetch the full decision by session ID. The SDK handles camera permissions, document capture, liveness and NFC reading on the device.
Latest Android release is 4.15.4, minimum API 23. NFC chip reading works on supported documents. Resource names in the SDK start with didit_ since 4.14.5, so the SDK no longer replaces a host app resource such as ic_close, and your own strings no longer change the SDK copy.
For teams that verify people in Illinois, Texas or Colorado, the flow can show an explicit biometric consent step before the first face capture. That step exists on the hosted flow and on native Android 4.10.0 or later. A native SDK below 4.10.0, or one that does not report its version, cannot show it: the session still runs and the decision reports biometric_consent.status: "pending" with reason BIOMETRIC_CONSENT_UNSUPPORTED_SDK. Upgrade if those jurisdictions are in scope.
Install route: the native SDK, then two alternatives
The native SDK is the installation path for an app that puts verification in front of users. The other two options are different jobs: standalone APIs are a separate architecture for backend-only work, and the MCP server is optional help for a coding agent.
Native SDK from Didit's custom Maven repository
Add Didit's custom Maven repository and the Android SDK dependency shown below. This is the route for a production app that ships to Google Play: one artifact, camera and NFC handled in-app, no browser hop.
Standalone APIs: a separate architecture
If you already own the capture UI, or you are working server to server, call the standalone APIs instead of the SDK. Each check has its own endpoint and its own price line. Standalone API calls have their own published per-call prices. The ID document verification step inside a session costs $0.15 per completed check. The standalone API index is at docs.didit.me/standalone-apis/id-verification. Keep the native SDK for user-facing flows and use standalone APIs for batch work.
MCP server: optional help for a coding agent
The Didit MCP server is free, hosted at https://mcp.didit.me/mcp with OAuth sign-in. See the Didit MCP page for client setup instructions. Point your assistant at the integration prompt, and it returns an integration recommendation for the project: the SDK session flow or standalone REST calls. For an Android repo with a Jetpack Compose screen, the recommended answer is the native SDK session flow, because hosted verification flows are A/B tested for completion rate and the SDK covers camera and NFC edge cases. The raw prompt is at docs.didit.me/integration/integration-prompt.md.

Prerequisites
| Requirement | Detail |
|---|---|
| Didit plan | Free plan with $10.00 monthly credit for the first organization created with an eligible work email for a company domain; phone verification codes are excluded. Growth at $99 a month, Scale at $299 a month, or an Enterprise contract. Sandbox testing is free and unlimited on every plan |
| API key | Stored on your backend, sent as the x-api-key header. The decision endpoint needs the read:sessions privilege |
| Workflow | A workflow UUID from /v3/workflows/. A KYC workflow creates a user verification session, a KYB workflow creates a business session |
| Android client | Android Studio project, Gradle, minimum API 23. Kotlin and Jetpack Compose are both supported |
| Device permissions | Camera for document and face capture. NFC on the device for chip reading. The SDK handles the permission prompts |
| Network | The app talks to Didit over HTTPS. Pass the Didit session token to the SDK. Keep the Didit API key on your backend |
| Webhook destination | A POST endpoint on your server plus its signing secret from the Business Console |
Seven steps to a working Kotlin KYC flow
Create the session on your backend. Call
POST https://verification.didit.me/v3/session/with your API key. The response carriessession_id,session_token,verification_urland statusNot Started. Send only the token to the app.POST https://verification.didit.me/v3/session/ Headers: { "x-api-key": DIDIT_API_KEY, "Content-Type": "application/json" } Body: { "workflow_id": "YOUR_WORKFLOW_UUID", "vendor_data": "internal-user-id" }vendor_datais your stable identifier for the person and drives duplicate detection across sessions.Hosted flow callbacks. If you use the hosted flow instead of the native SDK,
callbackis where the hosted flow redirects the user when finished. When the application has allowed domains, an http or https callback must sit on one of those origins or creation fails with 400 on callback. Custom URL schemes such asmyapp://are always accepted.Add the Maven repository and the dependency. The artifact lives in Didit's custom repository. Add the
maven { url = uri(...) }entry inside the existingdependencyResolutionManagement.repositoriesblock insettings.gradle.kts, and theimplementation(...)entry inside the app module'sdependenciesblock. Keep the repository, artifact and version exactly as shown.// settings.gradle.kts, inside the existing dependencyResolutionManagement.repositories block maven { url = uri("https://raw.githubusercontent.com/didit-protocol/sdk-android/main/repository") } // app module build.gradle.kts, inside the existing dependencies block implementation("me.didit:didit-sdk:4.15.4")Minimum is API 23 (Android 6.0). ML auto-detection runs on API 24 and above.
Start verification from Kotlin. Hand the session token to the SDK when the user taps your verification button.
DiditSdk.startVerification(token = sessionToken)The SDK opens the flow and manages camera permission, document capture, liveness and NFC reading. Pin the SDK version, because features land per release: the consent step needs 4.10.0 or later, resource isolation needs 4.14.5 or later.
Receive the webhook. Read the raw request body. Check that
X-Timestampis within 300 seconds of server time. VerifyX-Signature-V2with the destination signing secret using Didit's sorted, Unicode-preserving canonical JSON and a constant-time comparison. During rotation, check the-Previousheader with the previous secret when present. Apply verified events idempotently and return a 2xx response promptly. Subscribe tostatus.updatedanddata.updated. There is no wildcard, so list every event family you want.Read the decision.
GET https://verification.didit.me/v3/session/{session_id}/decision/with a key holdingread:sessionsreturns the full decision. Branch onsession_kind:"user"for KYC,"business"for KYB. Feature data lives in plural arrays such asliveness_checks[],face_matches[]andnfc_verifications[]. If a feature did not run, the field is absent or null.Set access from the verified result. Your backend uses the verified webhook or the retrieved decision to set access, and the app displays the backend's state. Statuses are exact, case-sensitive strings:
"Not Started","In Progress","Approved","Declined","In Review","Awaiting User","Resubmitted","Expired","Abandoned","Kyc Expired". Note the single capital K inKyc Expired. Use strict string matching in Kotlin, not lowercase comparison.Test in the sandbox. On a sandbox application, pass
sandbox_scenarioon create to reproduce a bundled outcome, or arm it later withPOST /v3/session/{session_id}/sandbox/arm/while the session is stillNot Started. The scenario catalog isGET /v1/sandbox/scenarios/. The field is rejected with 400 on live applications.

Field and event mapping
| Field or event | Where it appears | How to use it |
|---|---|---|
session_token | Create session response | The app passes it to DiditSdk.startVerification. The API key never goes in the APK |
vendor_data | Create session request, session webhook envelope and retrieved decision | Your backend maps the session back to your own user id |
status | Decision and webhook | The app displays the state your backend set from the verified result |
webhook_type | Webhook envelope | Route status.updated to session status handling, data.updated to session verification data handling, and user.status.updated to User entity status handling. |
liveness_checks[] | Decision | Your backend inspects the liveness result when the check ran |
face_matches[] | Decision | Your backend reads face-match results when the workflow ran that check |
nfc_skip_reason | Decision, top level | Your backend reads why a chip read was skipped: USER_SKIPPED, DOCUMENT_WITHOUT_CHIP, DEVICE_WITHOUT_NFC, INTEGRATION_WITHOUT_NFC_ACCESS, MRZ_KEY_UNAVAILABLE |
biometric_consent.status | Decision | Your backend reads the value: pending with BIOMETRIC_CONSENT_UNSUPPORTED_SDK means the native SDK is below 4.10.0 or did not report its version |
decision_trace | Decision | Your backend reads how the status was reached: decided_by manual, automatic or investigator, plus warning counts |
biometric_retention | Decision | Your backend reads the jurisdictions and the date the live biometric data of the session is deleted; the app can show it in a privacy screen |
sandbox_scenario | Session webhook envelope | Read the armed scenario slug. The value is null on live sessions and unarmed sandbox sessions. |
event_id | Webhook envelope | Your backend uses it as the idempotency key for retried deliveries |
Test in the sandbox: success, failures and fixes
Sandbox sessions are free and unlimited, so run the whole matrix there before you touch a live key. For an approval scenario, check for Approved and inspect the decision on the verified webhook. Check the result arrays for the steps the workflow actually ran. If NFC was skipped, inspect nfc_skip_reason.
Then run the other outcomes: a decline and a manual review. The sandbox catalog, GET /v1/sandbox/scenarios/, lists the available outcomes; the webhook documentation's envelope example uses decline_aml_hit. Test NFC skipping as its own check: run a session where the chip read is skipped and confirm your app handles the missing chip data from the decision. Test duplicate webhook delivery as its own check: deliver the same event_id twice and confirm the second delivery changes nothing. Confirm that your app shows the right screen instead of a generic error.
| What you see | Cause | Fix |
|---|---|---|
| 401 from the API | Invalid API key | Use a key from the Business Console on the server. Restarting the app will not help |
| 403 with detail "You do not have permission to perform this action." | The key lacks read:sessions | Grant the privilege on the key that reads decisions |
| 404 with detail "Not found." | The session does not exist or belongs to another application | Use the session_id returned on create with a key for the application that created it. Keys from two applications in the same environment can still return 404 |
| 400 on callback: "callback must be on one of the application's allowed domains" | Hosted flow callback origin is not on the allowed list | Add the origin to allowed_domains with PATCH /v3/webhook/, or use a custom scheme deep link |
400 on session_expiration_time | Value outside 3600 to 2419200 seconds, or not a whole number | Send whole seconds inside the range, or omit the field to use the workflow setting |
| 400 on create for a Biometric Authentication workflow | No reference face: portrait_image missing and no stored face for the vendor_data | Send a base64 face, max 2MB, JPEG, PNG, WebP or TIFF, or enroll a face first |
Consent step never appears, decision says BIOMETRIC_CONSENT_UNSUPPORTED_SDK | Native SDK below 4.10.0, or the version is not reported | Upgrade to 4.15.4 |
Your app's own ic_close or strings change unexpectedly | Android SDK below 4.14.5 shared resource names | Upgrade. Use the Texts tab in Customization for copy overrides |

Disconnect
Stop creating new sessions and remove the SDK from the next app release. Remove the Maven repository entry if no remaining dependency uses it. If you no longer need webhook delivery, remove the destination. Any later decision lookup requires a key for the same application with read:sessions.
What both ends cost
On the Didit side you pay per completed check from prepaid credit. The Android SDK, Workflow Orchestrator and MCP server are free. On your side the cost is engineering time plus the checks you run, and the sandbox adds nothing because sandbox testing is free and unlimited.
Prices you will most likely touch on an Android KYC flow: full ID check $0.33, ID document only $0.15, passive liveness $0.10, active liveness $0.15, face match 1:1 $0.05, NFC chip reading $0.15 as an add-on, biometric authentication $0.10, AML screening $0.20, proof of address $0.20, and phone verification codes cost a $0.02 Didit fee per code plus the carrier price for the country and channel.
Worked example. Say 1,000 Android users complete a full KYC check in a month, 300 of them also read an NFC passport chip, and you screen all 1,000 names against AML lists:
- 1,000 checks × $0.33 = $330.00
- 300 chip reads × $0.15 = $45.00
- 1,000 AML screenings × $0.20 = $200.00
- Total at list price: $330.00 + $45.00 + $200.00 = $575.00
On Scale, these KYC, NFC and AML checks cost 10% less. Discounted usage is $575.00 × 0.90 = $517.50. That figure is usage only: it sits before the $299.00 monthly subscription fee and before the $350.00 of monthly plan credit, which are read from the pricing page rather than from this example.
For an eligible Free organization, 30 full checks × $0.33 = $9.90. A 31st check would bring the total to $10.23. Unused monthly credit expires at the end of the plan month. New top-ups expire after 12 months and are spent after the plan credit. Balances purchased before November 1, 2026 do not expire.
Android verification security and failure handling
Biometric authentication methods inside an Android app
Use Android's platform biometric prompt to reopen an existing app session. It verifies against biometrics enrolled on the device. For identity verification, a full Didit KYC check compares a live face with the document portrait. For Biometric Authentication, we compare a new face capture with a reference face for $0.10 per authentication. Pass portrait_image when creating that workflow's session or reuse a stored face for the same vendor_data.
Face Search 1:N costs $0.05 per search and can surface potential same-person matches for duplicate-account review.
Android SDK security: keep the key off the device
An APK is readable. Anyone can decompile it and pull a string out, so an x-api-key shipped inside the app is a published key. Create sessions on your backend, send the session token to the app, and keep read:sessions keys on your backend too. If you must call Didit from the device, call your own backend, not the Didit API.
Native SDK versus a WebView
A WebView is the fallback, not the default. It loses NFC, camera optimization and the native biometric integration. Use the native SDK for user-facing verification, keep the REST API for server-to-server work, and use standalone APIs when you already own the capture UI.
Design for the failure path
Show a pending message for In Review. Offer another attempt when the session is Resubmitted. For Declined and Expired, explain the next step your policy allows and keep any action that requires verification gated.

Sources
- Didit docs, native mobile KYC SDKs overview
- Didit docs, Android SDK guide
- Didit docs, SDKs and integrations
- Didit docs, create session API
- Didit docs, retrieve session decision API
- Didit docs, webhooks and HMAC signing
- Didit docs, verification statuses
- Didit docs, biometric consent for BIPA, CUBI and Colorado
- Didit docs, standalone APIs
- Didit pricing page, read November 26, 2026
- Didit live price feed as JSON, read November 26, 2026
- Didit docs, pricing and billing rules, read November 26, 2026
- Didit MCP server setup
- Didit integration prompt for coding agents
- Didit integration prompt, raw Markdown
Start in the sandbox with no sales call: create an account at business.didit.me, create a workflow, and run your first Android session against a sandbox scenario before you spend a cent.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alejandro Rosas
Co-founder and CTO

Questions
Frequently asked questions
What is the Didit Android SDK package and current version?
The artifact is me.didit:didit-sdk, latest version 4.15.4, published to a custom Maven repository at https://raw.githubusercontent.com/didit-protocol/sdk-android/main/repository. It requires API 23 (Android 6.0) or higher, with ML auto-detection on API 24 and above. It is the identity verification SDK, separate from Didit Authentication modules.
How do I add Didit identity verification to a Kotlin app?
Create a session on your backend with POST https://verification.didit.me/v3/session/, add the Maven repository and the me.didit:didit-sdk dependency, then call DiditSdk.startVerification(token = sessionToken) from the app. We send status updates by webhook. The webhook includes a decision body for Approved, Declined, In Review and Abandoned. Your backend can fetch the full decision by session ID from GET /v3/session/{session_id}/decision/. The full sequence is in the Android SDK guide.
How much does one Android KYC check cost?
A full KYC check is $0.33: ID document $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. NFC chip reading adds $0.15, AML screening adds $0.20. The Android SDK, Workflow Orchestrator and MCP server are free, and sandbox testing is free and unlimited.
Does the Android SDK read NFC passports and eIDs?
Yes. The Android SDK includes NFC chip reading on supported devices and documents, and the decision reports nfc_verifications[] with chip data and authenticity. If the read is skipped, the top-level nfc_skip_reason says why, for example DOCUMENT_WITHOUT_CHIP or DEVICE_WITHOUT_NFC. NFC reading is a separately priced add-on to the workflow at $0.15 per check.
Can I test a declined verification before release?
Yes. On a sandbox application, pass sandbox_scenario when you create the session, or arm a scenario afterwards with POST /v3/session/{session_id}/sandbox/arm/ while the session is still Not Started. The catalog is GET /v1/sandbox/scenarios/. The webhook envelope echoes the armed scenario, and the field is rejected on live applications.
How does biometric consent work on Android?
The consent step needs native SDK 4.10.0 or later, and 4.15.4 is current. In Auto consent mode, pass the person's state of residence in user_state when you know it. For Illinois, Texas or Colorado, the flow can request explicit consent before the first face capture. If you already collected consent and pass it in biometric_consent, the flow skips the prompt. A native SDK below 4.10.0 reports biometric_consent.status: "pending" with reason BIOMETRIC_CONSENT_UNSUPPORTED_SDK.
Which biometric authentication methods should an Android app use?
Use the platform biometric prompt for re-opening your app on a known device, and a server-side identity decision for anything that establishes who the person is. A full Didit KYC check includes passive liveness and face match for $0.33. Add NFC chip reading when your workflow calls for it and the device and document support it. Face Search 1:N costs $0.05 per search and can surface potential same-person matches for duplicate-account review.
How do I integrate biometrics with an airline app?
Split the flow by risk. Keep device biometrics for app login and boarding pass access on a known phone, and run a Didit verification when a passenger creates an account, adds a document, or performs a high-value action. The native SDK captures the face and document and can read an NFC ePassport when the workflow, device and document support it. We send status updates to your backend by webhook. Your backend can fetch the full decision by session ID. Use the airline's required identity checks to decide which verification can happen before airport arrival.
Where do I store the Didit API key in an Android project?
Nowhere in the app. Keep it on your backend, create sessions there, and pass only the session token to the device. An APK can be decompiled, so a key in the build is a leaked key. The decision endpoint also belongs on the backend, because it needs the read:sessions privilege.
What is the minimum Android version and language support?
API 23, Android 6.0, with ML auto-detection on API 24 and above. The native verification flow supports 54 capture and UI languages, and your backend can request one with the session's language parameter. Copy overrides are separate: they live under the Texts tab in Customization in the Console.
Can an AI assistant set up the Android integration for me?
Yes. The Didit MCP server is free and hosted at https://mcp.didit.me/mcp with OAuth sign-in, and see the Didit MCP page for client setup instructions. The integration prompt gives your agent an integration recommendation for the project: it asks for your stack, then picks the SDK session flow or standalone APIs.
What do the session statuses mean for my app?
Approved is the session's approval decision. Use decision_trace and the feature results if your policy distinguishes automated approval from a review decision. Declined means one or more checks failed, In Review means a compliance reviewer must decide, and Kyc Expired means a previously approved document passed its expiry date. Match the strings exactly, they are case-sensitive and contain spaces, and treat anything unknown as pending rather than approved.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


