# WIDTH Identity — Developer Documentation (Full Index) > Comprehensive developer integration index for WIDTH Identity, an identity verification (KYC/KYB) and AML transaction screening platform. This is the extended companion to /llms.txt. The documentation is a single bilingual (English + Simplified Chinese) page; every entry below is an anchor on https://www.width.com/developer. > Version 1.0 · Last Updated 2026-10-13 ## Overview - [Overview](https://www.width.com/developer/#overview): Introduction to WIDTH Identity and its integration surfaces. Covers what the platform does — KYC/KYB onboarding, transaction and Web3 on-chain screening, and continuous monitoring — and which surface to use for each job. - [Integration Paths](https://www.width.com/developer/#integration-paths): Decision guide for choosing between client-side SDKs and server-side OpenAPI. SDKs handle front-end identity capture (camera, document, liveness); OpenAPI handles server-side workflow submission, polling, and screening. The two are typically combined. - [Environments](https://www.width.com/developer/#environments): Two customer environments. Staging — console `https://platform.width.com`, gateway `https://api-gateway-platform.width.com/gateway`, storage `https://api-gateway-platform.width.com/storage`. Production — console `https://app.width.com`, gateway `https://api-gateway.width.com/gateway`, storage `https://api-gateway.width.com/storage`. Document/photo uploads go to the gateway's `/storage` path (not a separate host). - [Getting Started](https://www.width.com/developer/#getting-started): A zero-to-first-call path for technical integrators. Prerequisites in the One Platform Console (confirm/create a Domain a.k.a. Business Unit, generate credentials under API & Integration, configure and publish your workflow); a five-step first verification (choose path → set env & credentials → start → receive result → check decision & usage); the workflow decision model (decision step runs last after screening + rule evaluation; terminal states COMPLETED / WAITING / FAILED; read intermediate results via a Webhook Action node; act on the Decision Webhook); and usage/quota in Admin Console → Billing (999501 on quota exceeded). ## Web SDK (`@width-com/web-sdk`) - [Overview](https://www.width.com/developer/#web-overview): Purpose and capabilities of the browser SDK; chainable API surface. - [Get a Session Token](https://www.width.com/developer/#web-credentials): Server-side `sdk.credentials` call to mint a single-use session token; never cache or reuse — issue a fresh token per verification. - [Installation](https://www.width.com/developer/#web-install): Installing `@width-com/web-sdk` from npm. The tag also selects the environment the SDK connects to: as of this update the default (`latest`) release targets production and opens `https://identity.width.com/sdk-page`, while `@beta` targets the platform (testing) environment and opens `https://identity-platform.width.com/sdk-page` — that pairing reflects the builds the two tags point at today, not a fixed rule, so check which host your installed build opens before you ship. The verification page address is compiled into each published version, so the environment is fixed at install time and `withConf` carries no field that changes it. Installing a tag that does not match the environment the `apiKey` belongs to makes that page render `Invalid apiKey` and the flow stops there, while backend OpenAPI calls with the same key keep working; one key covers both sides — `withConf` declares a single key field, `apiKey`, and it is the same key you sign `sdk.credentials` with, and the TypeScript declarations shipped inside the package list every field it accepts. Choose the tag by environment, not by version number: `@beta` currently resolves to `1.0.0-beta.3` (published 2026-08-05) and the default to `1.0.1` (released 2026-08-20), and both carry the optional `eventType` and `language` config fields; stable releases up to `1.0.0` do not contain them, where TypeScript fails to compile them and plain JavaScript ignores them silently. - [Quick Start](https://www.width.com/developer/#web-quickstart): Minimal end-to-end browser verification flow. - [Configuration](https://www.width.com/developer/#web-config): `withConf` options for the web flow — `apiKey`, `domainId`, `email`, `customerId` (all required), plus optional `mode` (`'modal'` default / `'newtab'`), `zIndex`, and two fields available from `1.0.1`, the current `latest` release (absent from stable releases up to `1.0.0`): `eventType` (`KYC_EVENT` / `KYB_EVENT`; omit the field to keep the default routing) and `language` (`'en'` / `'zh'`; English when omitted, with no automatic browser-language detection). - [Handling Results](https://www.width.com/developer/#web-results): Reading the verification answer and acting on it. `reviewResult.reviewAnswer` has two values only: `GREEN` = approved, `RED` = every other outcome (so `RED` means "not approved", not necessarily "rejected" — check the case status before treating it as a rejection). - [Methods](https://www.width.com/developer/#web-methods): Chainable API methods. `instance.launch(container?)` returns the full verification-page URL for the session — of the form `https://identity.width.com/sdk-page?sdkMode=1&sdkSession=&apiKey=&theme=light`, with the host taken from the installed build — and `''` when the launch fails; the session token behind that URL is single-use. `container` is ignored, and `instance.close()` closes the verification window programmatically. - [Events](https://www.width.com/developer/#web-events): Lifecycle events emitted by the SDK. - [Error Codes](https://www.width.com/developer/#web-errors): Web SDK error codes. - [Browser Support](https://www.width.com/developer/#web-browser-support): Minimum browser versions for the Web SDK — Chrome / Edge (desktop) 92+, Firefox 95+, Safari (macOS and iOS) 15.4+, Chrome (Android) 92+. The SDK relies on `crypto.randomUUID`, ES2020 syntax and a modern `fetch` / `postMessage`; older browsers are not supported. - [Troubleshooting](https://www.width.com/developer/#web-troubleshooting): Common web integration issues, including the `INVALID_INPUT` messages for each required `withConf` field (`apiKey`, `accessToken`, `domainId`, `email`, `customerId`) — `domainId` is the `id` of the domain chosen from `domains[]` in the `sdk.credentials` response. Also covers the domain allowlist, which the customer configures under API & Integration in the Console (each entry starts with `https://` or `http://`, no path, no wildcards; the key-generation button is hidden when the account role lacks the manage-API-keys permission), and the CSP / Permissions-Policy headers: in `modal` mode the SDK inserts an iframe loading the verification page, so `frame-src` must allow `https://identity.width.com` for the default (`latest`) build or `https://identity-platform.width.com` for the `@beta` build, with camera, microphone, accelerometer and gyroscope granted to the same origin. ## iOS SDK - [Overview](https://www.width.com/developer/#ios-overview): Native iOS SDK introduction. `import WidthIdentity` and call one entry point; the SDK presents the whole capture / liveness / review UI and returns a single result. Two equivalent entry styles: the direct-input `WIDTHVerification.present(from:input:completion:)` / `.widthVerification` SwiftUI modifier, and the handler-style `WIDTHMobileSDK(accessToken:)` object whose public types are prefixed `WIDTH*` (`WIDTHStatus`, `WIDTHException`, `WIDTHDayNightMode`). Requirements: iOS 16.0+ deployment target, Xcode 16+, Swift Package Manager or CocoaPods. - [Installation](https://www.width.com/developer/#ios-install): Swift Package Manager from `https://github.com/width-com/WidthIdentity-iOS.git` with `from: "1.0.11"`, or CocoaPods with `source 'https://github.com/width-com/Specs.git'` (Width's private Specs repo) declared alongside the public trunk and `pod 'WidthIdentity', '~> 1.0.11'`. Both repositories are private: until your GitHub account has been granted access, Xcode, `git` and `pod install` all report them as not found, so access has to be in place before either install path works. The SDK token is no longer stored in `Info.plist` — it is passed at runtime through `CredentialsConfig.sdkToken`, and there is no SDK environment Info.plist key. Four Info.plist usage descriptions are covered here: camera, microphone and speech recognition are required, the photo-library one is optional. The package ships eight xcframeworks (`WidthIdentity`, `SecCamera`, `onnxruntime`, `AwsLiveness`, `Veriff`, `DocumentReader`, `DocumentReaderCore`, `RegulaCommon`) and embeds them all automatically; `AwsLiveness` is self-contained, so no Amplify or AWS dependency of your own is needed. Upgrading = bump the SPM `from:` value or the Podfile version and resolve packages. - [Quick Start](https://www.width.com/developer/#ios-quickstart): Launching a verification from UIKit or SwiftUI in either entry style. `VerificationInput` takes `CredentialsConfig(domain:sdkToken:)` plus `CustomerConfig(customerId:email:)` — all four values must be non-empty, and the initializer `throws` (surfacing as `.failed(code: "W-INIT-410", …)`). The handler-style entry is `WIDTHMobileSDK(accessToken: "YOUR_SDK_TOKEN")` with `sdk.credentials = .init(domain:)`, `sdk.applicant`, optional `sdk.dayNightMode` and optional `sdk.language` (`.en` default / `.zh`). An optional `SdkEventLogger` streams INFO / WARN / ERROR lifecycle events with PII redacted. - [Configuration](https://www.width.com/developer/#ios-config): Same input structure as Android — `VerificationInput`, `CredentialsConfig` (`domain` + `sdkToken`) and `CustomerConfig` (`customerId` + `email`, both required); on iOS the initializer is `throws` and additionally accepts an optional `eventLogger`. iOS-specific symbols: `WIDTHVerification.present(from:input:completion:)`, `View.widthVerification(isPresented:input:onResult:)`, `WIDTHMobileSDK(accessToken:)` + `credentials` / `applicant` + `present(from:)`, `View.widthMobileSDK(isPresented:makeSDK:)`, `ThemeConfig` / `ThemeMode`, and `UILanguage` (optional UI language, `.en` default / `.zh`). - [Handling Results](https://www.width.com/developer/#ios-results): Reading the `WIDTHStatus` result and handling `WIDTHException`. - [Theme](https://www.width.com/developer/#ios-theme): `themeMode` / `dayNightMode` day-night theming. - [Lifecycle](https://www.width.com/developer/#ios-lifecycle): SDK lifecycle. - [Permissions](https://www.width.com/developer/#ios-permissions): Three mandatory Info.plist keys and one optional. `NSCameraUsageDescription` (document capture, liveness) and `NSMicrophoneUsageDescription` are both mandatory — the document-verification flow records background audio as an anti-fraud measure, so a missing microphone key hard-crashes the app at runtime. `NSSpeechRecognitionUsageDescription` is mandatory for a different reason: `AwsLiveness.xcframework` statically absorbs Amplify's Predictions plugin, which references `SFSpeechRecognizer`, so App Store ingestion rejects the upload without the key (error `ITMS-90683`) even though the permission is never requested at runtime — state plainly in the string that the app does not use it. `NSPhotoLibraryUsageDescription` is optional (only if users pick a document image; the system PhotosPicker does not strictly require it). There is no SDK environment key and no token key; networking is HTTPS via URLSession with no `NSAppTransportSecurity` exceptions. App Thinning is supported, Bitcode is not embedded, and **Strip Swift Symbols** should stay at its default `YES`. - [Troubleshooting](https://www.width.com/developer/#ios-troubleshooting): Common iOS integration issues. ## Android SDK - [Overview](https://www.width.com/developer/#android-overview): Native Android SDK introduction. The SDK runs in its own Activity — one dependency, one entry point, one result — and it plus its embedded capture / liveness / document-reader engines transitively merge every permission it needs. Requirements: API 26 (Android 8.0)+, `compileSdk 36`, Kotlin 1.9+, Gradle / AGP 8.0+, Java 11 source/target; the host app may be Compose-based or View-based. - [Installation](https://www.width.com/developer/#android-install): Three steps. (1) Repositories in `settings.gradle.kts`: Width's `https://maven.width.com/repository/sdk-releases/` plus `google()` and `mavenCentral()`, and — because the bundled document-capture engines are vendor-hosted — `https://cdn.veriff.me/android/` (group `com.veriff`) and `https://maven-master.regulaforensics.com/RegulaDocumentReader/` (groups `com.regula.documentreader`, `com.regula.documentreader.core`, `com.regula.common`); both provider repos are needed at build time even if a capture provider goes unused. (2) A single dependency `implementation("com.width.identity:sdk-activity:1.0.11")`, with `minSdk 26` and `compileSdk 36` (the published AARs declare `minCompileSdk=36` in their AAR metadata and the build tooling enforces it, so a lower `compileSdk` fails the build) — the earlier `sdk-bom` platform and separate `sdk-ui-width-modern` coordinate are no longer needed. (3) Two required app-module build settings, neither touching your source code: `isCoreLibraryDesugaringEnabled = true` in `compileOptions` plus `coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")` (the bundled AWS Rekognition liveness engine ships Amplify AARs whose metadata declares `requires core library desugaring`, and AGP enforces it on the app side via `checkReleaseAarMetadata` / `checkDebugAarMetadata` regardless of `minSdk`), and `android.uniquePackageNames=false` in `gradle.properties` on AGP 9 (`com.google.ai.edge.litert:litert-support` and `litert-support-api` 1.4.1 both declare the namespace `org.tensorflow.lite.support`, an upstream packaging bug that fails AGP 9's manifest merger with `Validation failed, exiting`). The SDK token is no longer registered through an `AndroidManifest.xml` `` entry or `strings.xml`; it is passed at runtime as `CredentialsConfig.sdkToken`. - [Quick Start](https://www.width.com/developer/#android-quickstart): Launching a verification on Android. - [Configuration](https://www.width.com/developer/#android-config): `VerificationInput` — `credentials` (`CredentialsConfig`) and `customer` (`CustomerConfig`) required, plus optional `theme` (`ThemeConfig`), `eventType` (`"KYC_EVENT"` / `"KYB_EVENT"`, which skips the in-SDK selection screen; omit to let the user pick) and `language` (`UILanguage.EN` default / `.ZH`). `CredentialsConfig` = `domain` (tenant routing) + `sdkToken` (previously a manifest `` entry). `CustomerConfig` = `customerId` + `email`, both required and non-blank — either blank throws `IllegalArgumentException`, tightening the earlier at-least-one rule. `com.width.identity.activity` is the only customer-facing package: `Verification`, `VerificationInput` / `CredentialsConfig` / `CustomerConfig`, `VerificationResult` / `VerificationDecision`, `WIDTHMobileSDK.Builder` + `WIDTHVerification`, `WIDTHCompletionResult` / `WIDTHStatus` / `WIDTHException`, `ThemeConfig` / `WIDTHDayNightMode`, `UILanguage`, and `SdkLogging` / `SdkEventLogger` / `SdkLogLevel`. Omitting `language` keeps English — the SDK does not follow the device locale; third-party capture screens have limits (Veriff shows Chinese only when the device is online and the tenant integration enables it, Regula supports Simplified Chinese only). - [Handling Results](https://www.width.com/developer/#android-results): Reading the verification result. - [Theme](https://www.width.com/developer/#android-theme): Day-night theming. - [Lifecycle](https://www.width.com/developer/#android-lifecycle): SDK lifecycle. - [Permissions](https://www.width.com/developer/#android-permissions): The SDK and its bundled engines declare everything and merge it into your app automatically — you declare and request nothing. Runtime (dangerous): CAMERA (SDK core) and RECORD_AUDIO (merged by the capture / liveness engine), both requested by the SDK from inside its own Activities, so your app never prompts. Install-time: INTERNET and ACCESS_NETWORK_STATE (SDK core), NFC / WAKE_LOCK / VIBRATE (capture / liveness engine), FLASHLIGHT (document-reader engine). No storage or media permission is needed — picking a document image uses the system photo picker. Every permission above appears in your app's permission listing and must be reflected in the Google Play Data Safety declaration. ProGuard / R8: the SDK ships embedded consumer rules, no extra configuration. - [Troubleshooting](https://www.width.com/developer/#android-troubleshooting): Common Android integration issues — a failure to resolve `com.width.identity:...` usually means the Width Maven repo sits in `build.gradle.kts` instead of `settings.gradle.kts`, or the coordinate is not the single `com.width.identity:sdk-activity:1.0.11`; failures on `com.veriff` or `com.regula.*` mean the two provider repositories are missing. `IllegalArgumentException` on launch means a blank `domain` / `sdkToken` / `customerId` / `email`, or an `eventType` that is not exactly `"KYC_EVENT"` or `"KYB_EVENT"`. A build failing `checkReleaseAarMetadata` / `checkDebugAarMetadata` with `requires core library desugaring` needs `isCoreLibraryDesugaringEnabled`; a build failing the same AAR metadata check over `compileSdk` means the module compiles against less than `compileSdk 36`; a manifest merge failing `Validation failed, exiting` on AGP 9 needs `android.uniquePackageNames=false`. Upgrading = bump the version string and re-sync Gradle. ## Flutter SDK - [Overview](https://www.width.com/developer/#flutter-overview): Cross-platform plugin (`flutter_width_identity_sdk_plugin`) wrapping the native iOS and Android SDKs — iOS and Android only, no web or desktop. Plugin `1.0.2` pins iOS SDK `1.0.11` and Android SDK `1.0.11`; upgrading the plugin upgrades both natives together and the native dependencies must not be overridden by hand. Requirements: Flutter 3.10+, iOS 16.0+ with Xcode 16+ and CocoaPods, Android `minSdk 26` / `compileSdk 36` with core library desugaring enabled. The native SDKs are single-environment (the target environment is baked into each published build), and the versions pinned by this release are production builds — so the `domain` and access token issued to you must be production credentials; a token from another environment never gets past the SDK's security init and surfaces as `W-RISK-102`. - [Installation](https://www.width.com/developer/#flutter-install): A pubspec git dependency on `https://github.com/width-com/WidthIdentity-Flutter.git` with `ref: 1.0.2`, then `flutter pub get`. iOS: declare `source 'https://github.com/width-com/Specs.git'` alongside the public trunk at the top of `ios/Podfile`, set `platform :ios, '16.0'`, then `pod install`. The plugin repository and the private Specs repo are both private, so your GitHub account must be granted access before `flutter pub get` and `pod install` can resolve them. Android: set `minSdk 26` and `compileSdk 36` — the plugin registers the WIDTH Maven repo, the Veriff / Regula vendor repositories and the native dependency automatically — and add the same two app-side settings the native SDK's bundled AWS liveness engine requires: `isCoreLibraryDesugaringEnabled = true` with `coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")`, and `android.uniquePackageNames=false` in `android/gradle.properties` on AGP 9. Projects enforcing `RepositoriesMode.FAIL_ON_PROJECT_REPOS` declare the repositories in `android/settings.gradle` instead. - [Permissions](https://www.width.com/developer/#flutter-permissions): iOS — `ios/Runner/Info.plist` needs `NSCameraUsageDescription`, `NSMicrophoneUsageDescription` (the document-verification provider records background audio; the app crashes at runtime without it) and `NSSpeechRecognitionUsageDescription` (required by App Store ingestion, never requested at runtime — a linked but unreachable API inside the AWS liveness component); `NSPhotoLibraryUsageDescription` is optional. Android — the native SDK's manifest merges its permissions automatically and you declare nothing; the runtime (dangerous) permissions are CAMERA and RECORD_AUDIO, requested by the SDK inside its own Activity. See the native SDK sections for the authoritative permission tables, and reflect every permission in the Google Play Data Safety disclosure. - [Quick Start](https://www.width.com/developer/#flutter-quickstart): Launching a verification from Dart — `WIDTHMobileSDK.init(sdkToken).withCredentials(domain: domain)` (the tenant routing domain; the rest of the credential is encoded inside the token), then the builder chain, then `await sdk.launch()`, which resolves when the native flow closes. - [Handling Results](https://www.width.com/developer/#flutter-results): Reading the result in Dart. - [API Reference](https://www.width.com/developer/#flutter-api): Plugin API surface — `WIDTHMobileSDK.init(accessToken)` returns `WIDTHMobileSDKBuilder` (`withCredentials` / `withApplicant` / `withEventType` / `withForcedDayNightMode` / `withLanguage` / `withHandlers` / `build()`); `WIDTHMobileSDK.launch()` presents the flow and resolves with `WIDTHMobileSDKResult` (`status` / `success` / `exception` / `executionId`); plus `WIDTHStatus` / `WIDTHException` / `WIDTHExceptionType`, `WIDTHSDKEvent` / `WIDTHLogLevel`, `WIDTHEventType` (optional KYC/KYB pre-selection), `WIDTHDayNightMode`, and `WIDTHLanguage` (optional UI language, `en` default / `zh`). Upgrading = bump the `ref` tag in `pubspec.yaml` and run `flutter pub get`; each plugin release pins the native SDK versions it was verified against. ## OpenAPI (server-side workflows) - [Getting Started](https://www.width.com/developer/#api-getting-started): Gateway endpoint and request envelope (`eventType`, `source`, `data`); workflows are submitted via `workflow.apply.submit` and polled via `workflow.execution.status`. - [Authentication](https://www.width.com/developer/#api-authentication): HMAC-SHA256 signature computed over the request body (lowercase hex), passed as the `sign` query parameter alongside `apiKey` and `apiVersion`; requests also carry an `x-domain` header. - [Configuration](https://www.width.com/developer/#api-configuration): Workflow configuration keys (e.g. document rule settings). - [Workflow Lifecycle API](https://www.width.com/developer/#api-workflow): The three server-side integration endpoints shared by every event type, forming one closed loop: submit → poll status → recovery query. (1) `workflow.apply.submit` (`#api-workflow-submit`) starts a published workflow by `eventType` + `source`, returns an `executionId` (persist it); billed per `eventType`; `apiVersion 2.0.0` adds an optional `workflowId` to target a specific published workflow (`1.0.0` auto-routes); response carries `sync` and `code` (200 ok / 403 quota-exhausted). (2) `workflow.execution.status` (`#api-workflow-status`) is a free read returning execution `status` (RUNNING / WAITING / COMPLETED / FAILED / CANCELED) plus the Case decision fields `caseNo` (format `C%06d`), `caseStatus` (UNASSIGNED / UNDER_REVIEW / RETURNED / OTHER_GROUP / APPROVED / REJECTED / CLOSED), `riskScore` (0–100), and `resolvedAt` (epoch millis); the status×caseStatus matrix distinguishes running, queued or under manual handling (UNASSIGNED / UNDER_REVIEW / RETURNED), continuing in another review group (OTHER_GROUP), and resolved; poll every 3–5s (back off to 30–60s once `caseStatus` is in manual handling) and exit when `caseStatus` ∈ {APPROVED, REJECTED, CLOSED} or `status` ∈ {FAILED, CANCELED}; a missing/empty `data` means the executionId does not exist or belongs to another tenant/domain. (3) `workflow.apply.query` (`#api-workflow-query`) is a free lookup by `eventType` + `source` + `customerId` for dedup (skip a duplicate submit when a RUNNING/APPROVED execution already exists) and crash-recovery (recover the `executionId` after a submit whose response was lost, avoiding a double-billed resubmit); `customerId` must stay stable per customer. Same gateway, HMAC signing, and `x-domain` header as the other OpenAPI methods. - [KYC Onboarding](https://www.width.com/developer/#api-kyc): Individual customer onboarding (`KYC_EVENT`; the Console displays it as KYC), with flow overview and node reference. - [KYB Onboarding](https://www.width.com/developer/#api-kyb): Corporate customer onboarding (`KYB_EVENT`; the Console displays it as KYB), node reference, and CRP related-party collector. - [Verification Link](https://www.width.com/developer/#api-link): `sdk.launch.link.generate` (POST, `apiVersion 1.0.0`) mints a one-off hosted web link that drops an end user straight into the KYC or KYB flow — the path to take when you have no site or app of your own to embed an SDK into. Request body: `email`, `customerId`, `eventType` (`KYC_EVENT` / `KYB_EVENT`), all required. Response nests the payload at `data.data`: `url` (carries a `linkToken` query parameter; treat the whole URL as a secret) and `expiresAt` (epoch millis; a link is valid 7 days from generation). Only one link is live per email address at a time: calling the endpoint again for the same `email` invalidates the previous link the moment the new one is issued — the copy already in the end user's hands stops opening and cannot be restored, so confirm the recipient is not part-way through the flow before reissuing; links issued to different email addresses never affect one another. An unsupported `eventType` comes back as `data.msg` = `Invalid eventType: ` with `data.code` 400 while the gateway-level `apiCode` stays 200 — read `data.code`. Identity verification only; transaction and Web3 events have no hosted web flow and go through `workflow.apply.submit`. Same gateway, HMAC signing and `x-domain` header as the other OpenAPI methods. - [Transaction Screening](https://www.width.com/developer/#api-txn): Fiat transaction AML screening (`TRANSACTION_EVENT`); supports sync (blocking) and async (non-blocking) modes; returns an `action` of approve/review/reject; for blockchain wallet addresses / on-chain transactions use `WEB3_TRANSACTION_EVENT` instead. - [Web3 Transaction Screening](https://www.width.com/developer/#api-txn-web3): On-chain wallet/transaction KYT screening (`WEB3_TRANSACTION_EVENT`); keyed on `walletAddress` and/or `txHash` (at least one) plus `chain` / `token`; returns a synchronous decision (`approve` / `reject`) via `data.output.action`/`data.output.code` (100000/100001/100002) and a `kytScreenResults` array carrying per-address `risk_level` / `risk_score` / `is_detected`. No workflow ID is passed — the platform auto-routes to the tenant's single published Web3 workflow (multiple published Web3 workflows: contact Width support). A `walletAddress`-only call screens the address itself, so it works as pre-transaction screening before anything is broadcast on-chain. Fiat transactions belong in `TRANSACTION_EVENT` instead. - [Name Screening](https://www.width.com/developer/#api-name-screening): Watchlist screening of a named subject, submitted through `workflow.apply.submit` (POST, `apiVersion 2.0.0`) with `eventType` `MANUAL_CASE_EVENT` and `source` `API` — the Console labels the event Manual. Unlike Quick Scan this path keeps a record: the subject is filed under a customer profile, matches become alerts, a case is opened for an analyst, and the adjudicated decision is remembered against the same `customerId` and reused by later cases. `workflowId` should be given for this scenario; omitting it is allowed and routes to the most recently published workflow. Subject fields go at the top level of `data` — required: `customerId` (stable customer number; the cross-case decision memory depends on it), `name` (one string, never split into surname / given name), `customerType` (`individual` or `corporate`); recommended: `aliasName` (other names, e.g. the original-script name; each is screened separately and several are comma-separated, so an alias must not itself contain a comma — write `Chen Dawei`, not `Chen, Dawei`; the restriction applies to `aliasName` only), `sex`, `dateOfBirth` (full date or year alone), `countryOfNationality` (ISO 3166 two- or three-letter, normalised), and for companies `countryOfIncorporation` (falls back to `countryOfResidence`) and `incorporationNumber` (strongest single piece of company evidence — send only a real number); optional: `countryOfResidence`, `occupation`, `idType` + `idNumber` (as a pair, real identity documents only, and effective only on the customer's first submission while no profile exists yet), `incorporationDate` (stored and displayed but not sent to the screening engine in the current version). Corroborating fields feed the match and push down weak hits; a missing field is treated neutrally. Asynchronous: a successful submission returns `data.executionId`, `data.requestId` and `data.status` RUNNING, with the result and risk score landing on the case page; poll via `workflow.execution.status`. Failures return the gateway's standard error envelope — usual causes are a signature that does not match the bytes sent, a missing `x-domain` header, an invalid JSON body, or a missing required field. Billing: screening consumes quota from the third-party name screening provider, so de-duplicate before calling and, after a timeout, look up the previous submission with `workflow.apply.query` rather than resending blind; how the quota is actually drawn down is whatever the Admin Console → Billing usage page reports, so read it there rather than working it out from assumptions, and put a small trial batch through before integrating at volume. Transport is the standard one: POST to the gateway with `api=workflow.apply.submit`, `apiVersion=2.0.0`, `apiKey` and `sign` in the query string plus the `x-domain` header, the body as UTF-8 JSON, and `sign` an HMAC-SHA256 over the exact bytes sent (serialise once, sign those bytes, send those same bytes). - [Quick Scan](https://www.width.com/developer/#api-quickscan): One-off name screening without creating a customer or configuring a workflow — three direct API methods (not an `eventType`): `quickscan.submit` (async, returns a scan `id` with `status` RUNNING), `quickscan.detail` (poll the scan, returns `status` RUNNING→DONE/FAILED with `totalHits` and a `hits` summary), and `quickscan.hits` (page through per-engine hits when `totalHits > 50`, where `quickscan.detail` returns `hits=null` and `truncated=true`). Engines: `WORLD_CHECK` / `DOW_JONES` / `ARTEMISCAN` / `INTERNET_SEARCH` (1 credit each) plus `WATCHLIST` (internal list, free). Same gateway, HMAC-SHA256 signing and `x-domain` header as the workflow APIs. - [Continuous Monitoring](https://www.width.com/developer/#api-monitoring): Asynchronous ongoing re-screening of existing customers (`PERIODIC_FLOW_EVENT`). - [File Upload](https://www.width.com/developer/#api-upload): Document/file upload endpoint. - [Error Handling](https://www.width.com/developer/#api-errors): API error codes and handling guidance. ## Webhooks - [Overview](https://www.width.com/developer/#webhook-overview): Outbound push callbacks (the platform pushes results to your endpoint), complementing the OpenAPI pull/polling model. - [Concept](https://www.width.com/developer/#webhook-concept): How webhooks fit the workflow lifecycle. - [Configure (UI)](https://www.width.com/developer/#webhook-config): Configuring a webhook endpoint in the platform UI. - [Request Format](https://www.width.com/developer/#webhook-request): Outbound request payload structure and headers. - [Signature](https://www.width.com/developer/#webhook-signature): HMAC signature verification; default algorithm `HMAC_SHA256`, default header `X-Webhook-Signature`; recompute with the shared secret to verify. - [Response Handling](https://www.width.com/developer/#webhook-response): Expected receiver responses. - [Decision Hook](https://www.width.com/developer/#webhook-decision): Decision hook using JsonPath conditions. - [Best Practices](https://www.width.com/developer/#webhook-best): Always verify signatures; do not trust payloads before verification. - [Troubleshooting](https://www.width.com/developer/#webhook-troubleshooting): Common webhook issues (signature mismatch, retries). - [Quick Reference](https://www.width.com/developer/#webhook-quickref): Webhook configuration and signing cheat-sheet. ## Reference / Appendix - [Glossary](https://www.width.com/developer/#glossary): Definitions of key terms (KYC, KYB, KYT, and more). - [Execution Statuses](https://www.width.com/developer/#appendix-statuses): Workflow execution status values (`RUNNING`, `COMPLETED`, `TIMEOUT`, `FAILED`). - [Event Types](https://www.width.com/developer/#appendix-events): `eventType` reference — `KYC_EVENT` (async, shown as KYC in the Console), `KYB_EVENT` (async, shown as KYB), `TRANSACTION_EVENT` (sync/async), `WEB3_TRANSACTION_EVENT` (sync/async), `PERIODIC_FLOW_EVENT` (async), `MANUAL_CASE_EVENT` (async, name screening — submits a subject to the workflow, raising alerts and creating a case for manual review; shown as Manual in the Console). - [Document Types](https://www.width.com/developer/#appendix-doctypes): Accepted ID/document type codes (e.g. NATIONAL_ID, INTERNATIONAL_PASSPORT, DRIVING_LICENCE, RESIDENCE_PERMIT, UTILITY_TELEPHONE_BILL, BANK_STATEMENT). - [Changelog](https://www.width.com/developer/#changelog): Version history. ## Key Facts - Product: WIDTH Identity — identity verification (KYC/KYB) and AML transaction screening platform. - Integration surfaces: server-side OpenAPI; Web SDK (`@width-com/web-sdk`); native iOS SDK and Android SDK; Flutter SDK (`flutter_width_identity_sdk_plugin`); outbound webhooks. - Gateways: `https://api-gateway.width.com/gateway` (Production) / `https://api-gateway-platform.width.com/gateway` (Staging); entry method `workflow.apply.submit`; poll via `workflow.execution.status`. - Request authentication: HMAC-SHA256 over the request body (lowercase hex), passed as the `sign` query parameter (with `apiKey`) plus an `x-domain` header. Webhook verification uses `HMAC_SHA256` with header `X-Webhook-Signature` by default. - Event types: `KYC_EVENT`, `KYB_EVENT`, `TRANSACTION_EVENT`, `WEB3_TRANSACTION_EVENT`, `PERIODIC_FLOW_EVENT`, `MANUAL_CASE_EVENT`. `KYC` and `KYB` are Console display names, not API values; `MANUAL_CASE_EVENT` is shown as Manual. - Decision values: approve / review / reject. - Mobile SDK versions (this update): iOS `1.0.11`, Android `com.width.identity:sdk-activity:1.0.11`, Flutter plugin `1.0.2` (pins both natives). Mobile credentials are `domain` + `sdkToken` only, passed at runtime — no Info.plist key and no manifest `` entry. - Mobile build requirements: iOS 16.0+ / Xcode 16+; Android `minSdk 26` and `compileSdk 36` plus two app-side settings — `isCoreLibraryDesugaringEnabled = true` with `desugar_jdk_libs:2.1.5`, and `android.uniquePackageNames=false` on AGP 9. The iOS Swift package, the CocoaPods Specs repo and the Flutter plugin repository are private — GitHub access has to be granted before they resolve. - Mobile permissions: iOS requires `NSCameraUsageDescription`, `NSMicrophoneUsageDescription` and `NSSpeechRecognitionUsageDescription` (the last for App Store ingestion only, never requested at runtime); `NSPhotoLibraryUsageDescription` is optional. Android requires CAMERA + RECORD_AUDIO at runtime, merged transitively by the bundled capture / liveness engines, and every merged permission must be declared in Google Play Data Safety. - Mobile UI language: optional and English by default on all three platforms — `UILanguage` on iOS (`.en` / `.zh`) and Android (`EN` / `ZH`), `WIDTHLanguage` on Flutter (`en` / `zh`); the SDK does not follow the device locale. - Documentation languages: English and Simplified Chinese (1:1 parallel; toggle on the page). ## Contact - Documentation: https://www.width.com/developer - Company website: https://www.width.com