Overview
VerityPro provides KYC identity verification, address verification, enhanced due diligence (EDD), and transaction monitoring (AML) as modular APIs and SDKs. Each product is independently activatable — your integration only calls the services your compliance programme requires.
Base URL
Request format
All requests are JSON (Content-Type: application/json). Authentication uses two headers present on every call.
Authentication
VerityPro uses API key authentication. Every request must include both headers below. Retrieve your keys from the Integrations page in the VerityPro portal.
| Parameter | Type | Required | Description |
|---|---|---|---|
| x-api-key | string | Required | Your integration API key. Treat this as a secret — never expose it in client-side code. |
| Integrationid | UUID | Optional | Your integration UUID. Required only for JWT-authenticated dashboard calls. Not needed when authenticating with x-api-key — the key already identifies your integration. |
Key rotation
Rotate keys from the portal under Settings → Integration → Keys → Rotate. When the rotation runs immediately, the new key is displayed once — copy it into your secrets manager before you close the dialog. If your organisation requires approval for key rotation, the request is queued instead and the new key is not shown in that dialog; ask your approver how it will be delivered before you rotate.
x-api-key header must only be sent from your server. Mobile and web SDK calls use a short-lived session token minted by your server.Environments
| Environment | Base URL | Notes |
|---|---|---|
| Live | https://api.veritypro.ai | Real verifications, billing applies |
| Sandbox | https://sandbox.api.veritypro.ai | No billing, test documents accepted |
Pass sandbox: true in SDK options to target the sandbox automatically. Server-side calls set the base URL manually.
Create KYC Session
Your server creates a verification session and receives back a sessionUrl. Send that URL to your customer — VerityPro hosts the entire document capture and liveness flow with your branding applied. Your API key stays server-side only.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vendorData | string | Required | Your internal customer identifier — returned unchanged in every webhook. Use the same value for EDD and Step-Up. |
| steps | string[] | Required | Steps to run: 'DOCUMENT', 'BIOMETRIC', 'ADDRESS', 'EDD'. Shortcut: 'DEFAULT' = DOCUMENT + BIOMETRIC. 'COMBINED' = all four. |
| firstName | string | Optional | Customer's legal first name — improves name-match accuracy. |
| lastName | string | Optional | Customer's legal last name. |
| dateOfBirth | YYYY-MM-DD | Optional | Pre-fills the document verification step. |
| ISO2Code | string | Optional | Customer's country of residence (ISO 3166-1 alpha-2, e.g. 'AU'). |
| previousSessionId | UUID | Optional | Link a new session to a prior one (e.g. add ADDRESS after BIOMETRIC was completed). |
Response
id — v2 session ID. Store this to poll status and for returning-user sessions.
attemptId — unique per evidence submission. Matches kycverification.AttemptId in every decision webhook — use it to correlate polling with webhook delivery.
kycEngineSessionId — null at creation; populated after the document step submits.
Send nextAction.sessionUrl to your customer. Sessions expire in 60 minutes.
Hosted Web Page (v2)
The recommended integration path. Use the same POST /kycintegration/v2/sessions endpoint as Create Session. The response includes nextAction.sessionUrl — redirect your user to that URL or embed it in an iframe. VerityPro renders the full verification flow with your branding. Your API key never touches the browser.
The session URL is in data.nextAction.sessionUrl in the response.
Redirect (full-page)
Iframe embed + postMessage
Poll session state anytime
Returns current status, completedSteps, currentStep, attemptId, and kycEngineSessionId. The attemptId matches kycverification.AttemptId in the decision webhook — use it to correlate polling with webhook delivery. No auth header required — the session ID is the capability.
iOS SDK
Add to your Podfile:
Then run pod install.
Requirements
- iOS 17.0+ deployment target
- Camera and FaceID usage descriptions in Info.plist
- Session token minted by your server (see Create Session)
Info.plist entries required
Result handling
The VerityResult returned in the completion block contains the outcome, completed steps, and any error details including whether the error is recoverable.
Brand customisation (optional)
Pass your logo and primary colour to show your brand inside the verification flow:
Android SDK
Add the GitHub Packages repository and dependency to your build.gradle:
Manifest permissions
Activity result launcher
Register the launcher in onCreate before the activity is started. Use VerityPro.extractResult(result) to get the typed result.
Brand customisation (optional)
Pass VpBrandConfig to show your logo and colour inside the flow:
Flutter SDK
Dart plugin bridging to the native iOS/Android SDKs — same product coverage. Installed via git dependency (not published to pub.dev).
pubspec.yaml
v2 — server-driven (recommended): pass serverSessionId from your backend and mode: VerityMode.serverDriven. The full Dart example is in the code panel.
Brand customisation: pass an optional brandConfig: VpBrandConfig(logoUrl: ..., primaryColor: ...) to show your logo and colour. The logo must be an HTTPS URL.
v1 — legacy: use mode: VerityMode.biometric (or .address / .edd) with preCreatedSessionId.
Web SDK
Install: npm install @veritypro/web-sdk
Presentation modes
| Mode | Description |
|---|---|
| modal | Overlay on top of your page |
| embed | Mounted into a container element you provide |
| hosted | Full-page redirect to VerityPro hosted URL |
Use the embedToken from your server session call. Do not pass your API key to the web SDK.
Optional: modules hint
Pass modules to pre-render the correct verification steps on the welcome screen before the backend session loads. The backend session's requestedSteps always win once fetched — this is a display hint only.
Reading the Attempt ID
The onSessionEstablished callback fires with the KYC engine session ID once created. The Attempt ID is included in the onResult payload and in every webhook for that session.
KYC Webhooks
VerityPro delivers a webhook to your registered endpoint when a KYC session reaches a terminal state. Configure the URL in Settings → Integration → Webhooks.
Payload fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| EventCode | number | Required | Numeric event code. 9001=Approved, 9102=Declined, 9105=ManualReview, 7001=started, 7002=submitted, 9301=address approved, 9302=address declined. |
| Action | string | Required | Human-readable outcome: approved | declined | resubmission_requested | expired | review | started | submitted |
| VendorData | string | Required | Your internal customer identifier — the same value you passed at session creation |
| kycverification.Id | UUID | Required | VerityPro verification identifier |
| kycverification.AttemptId | string | Required | Unique per evidence submission. Matches the attemptId field in GET /v2/sessions/{id} — use this to correlate webhook decisions with session polling and as your deduplication key. |
| kycverification.VerificationStatus | string | Required | Approved | Declined | ManualReview | Resubmission | Expired | Processing |
| kycverification.SessionId | string | Required | KYC engine session identifier |
| kycverification.ISO2Code | string | Optional | Country code used in the session |
| Document | object | Optional | Document details (type, country, expiry) — present on decision webhooks |
| AddressVerification | object | Optional | Address outcome fields — present on address event webhooks (EventCode 9301–9305) |
Verify the X-Veritypro-Signature header on every webhook before processing. See Verify Signature for details.
Address SDK
Address verification is triggered through the same SDK as KYC — set mode: .address (iOS) or mode = VerityMode.ADDRESS.name (Android). No separate SDK install is needed.
SDK options for address verification
| Parameter | Type | Required | Description |
|---|---|---|---|
| streetAddress | string | Required | User's street address to verify |
| city | string | Optional | City / suburb |
| stateOrProvince | string | Optional | State or province code |
| postalCode | string | Optional | Postcode / ZIP |
| country | string | Required | Country of the address (full name or ISO code) |
Address Server API
Add ADDRESS to the steps array when creating a session. This works standalone or combined with KYC in a single session.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vendorData | string | Required | Your internal customer identifier |
| steps | string[] | Required | Include 'ADDRESS'. Combine with 'DOCUMENT' and 'BIOMETRIC' for a full KYC + address flow. |
| firstName | string | Optional | Customer's first name |
| lastName | string | Optional | Customer's last name |
| dateOfBirth | YYYY-MM-DD | Optional | Used for cross-verification |
| ISO2Code | string | Optional | Country of address (ISO 3166-1 alpha-2) |
The response nextAction.sessionUrl takes the customer through the address proof upload step. A webhook fires with event address_completed when done.
Trigger EDD
Enhanced Due Diligence (EDD) is triggered when your risk programme identifies a customer requiring deeper scrutiny — typically after a high-risk transaction flag or on a scheduled review cycle. The customer must have an Approved KYC session in the system first.
No request body required. Pass your internal customer identifier as the vendorData query parameter — it must match the value used at KYC onboarding. Returns 200 on success or 404 if no approved KYC session exists for that customer.
EDD can also be included as a step at session creation — pass steps: ["DOCUMENT", "BIOMETRIC", "EDD"] to run it as part of the onboarding flow. A webhook fires with event edd_completed when the case is resolved.
EDD Status
Poll the session state to track EDD progress. The session also receives an edd_completed webhook when the case is resolved.
Response (EDD fields)
EDD reviews are completed by your compliance team in the VerityPro case management portal.
Process Transaction
Submit transactions to VerityPro's AML engine for real-time risk scoring. Each transaction is checked against velocity rules, sanctions screening, and ML-based anomaly detection. A risk decision is returned synchronously.
| Parameter | Type | Required | Description |
|---|---|---|---|
| vendorData | string | Required | Your internal user identifier |
| transactionType | enum | Required | TRANSFER | DEPOSIT | WITHDRAWAL | PAYMENT | EXCHANGE |
| amount | number | Required | Transaction amount (positive decimal) |
| currency | ISO 4217 | Required | 3-letter currency code, e.g. AUD, USD |
| sender.firstName | string | Required | Sender first name |
| sender.lastName | string | Required | Sender last name |
| sender.email | string | Optional | Sender email |
| sender.country | string | Required | Sender country (ISO 3166-1 alpha-2) |
| recipient.firstName | string | Required | Recipient first name |
| recipient.lastName | string | Required | Recipient last name |
| recipient.country | string | Required | Recipient country (ISO 3166-1 alpha-2) |
| paymentMethod | enum | Required | BANK_TRANSFER | CARD | CRYPTO | CASH |
| transactionReference | string | Optional | Your reference number for reconciliation |
Response
Decision values: PASS | REVIEW | DECLINED. Treat REVIEW as a soft block — hold the transaction pending analyst review. DECLINED is a hard block.
Step-Up Biometric Authentication
Re-verify a returning user's identity using face liveness + face match against the template enrolled during KYC onboarding. Use this for risk-triggered moments — high-value transactions, new-device logins, suspicious activity — rather than full re-onboarding. The subject must have completed a liveness-verified KYC session with the BIOMETRIC module before step-up is available.
Authentication: x-api-key only (JWT is not accepted on step-up endpoints). The subjectId must exactly match the vendorData value used at KYC onboarding.
1 — Create a challenge
| Parameter | Type | Required | Description |
|---|---|---|---|
| subjectId | string | Required | Must equal the vendorData used at KYC onboarding. |
| riskReason | string | Optional | Why step-up was triggered, e.g. 'high_value_txn'. For audit trail only. |
| channelOrigin | string | Optional | 'mobile_ios' | 'mobile_android' | 'web'. |
| alertId | string | Optional | AML alert ID that prompted this step-up — surfaces the biometric outcome on the alert row in your dashboard. |
Returns challengeId (your primary reference, valid 300s, max 3 attempts) and hostedUrl — send this link to your customer by SMS, email, or deep-link. VerityPro renders the liveness UI. A 422 means the subject has no enrolled biometric template — route to full KYC first.
2 — Get AWS Rekognition credentials (native SDK path only)
Only needed for the native mobile SDK path (you embed the AWS Face Liveness widget directly). Returns livenessSessionId, region, and short-lived AWS credentials — pass all of them to the AWS Amplify Face Liveness widget in your app. Skip this step when using the hosted URL path.
3 — Complete after liveness (native SDK path only)
| Parameter | Type | Required | Description |
|---|---|---|---|
| livenessSessionId | string | Required | The AWS Face Liveness session ID from step 2. |
| selfieImageB64 | string | Optional | Base64-encoded JPEG/PNG selfie captured by the AWS SDK. Optional on the hosted path — the engine fetches it directly from the Rekognition result. |
Verdicts
| verdict | Action |
|---|---|
| Passed | Identity confirmed — proceed with the action |
| ManualReview | Hold pending operator review; a webhook follows |
| Failed | Deny the action; retry available while attemptCount < 3 |
| NoEnrolledTemplate | Subject has no enrolled face — route to full KYC |
Webhook Event Types
VerityPro delivers events to your registered HTTPS endpoint. Configure the URL and secret in Settings → Integration → Webhooks.
| Event | Trigger |
|---|---|
| KycDecision (EventCode 9001) | KYC Approved |
| KycDecision (EventCode 9102) | KYC Declined |
| KycDecision (EventCode 9105) | KYC ManualReview — hold pending operator review |
| KycDecision (EventCode 9301–9305) | Address verification outcome — check VerificationStatus |
| kyc.session.expired | KYC session timed out without completion |
| step_up.completed | Step-up biometric finished — check verdict: Passed | Failed | ManualReview |
| step_up.failed | Step-up explicitly failed or max attempts reached |
| step_up.manual_review | Step-up requires operator review before verdict |
| step_up.expired | Step-up challenge expired (TTL 300s) without completion |
| transaction.risk.flagged | Transaction flagged REVIEW by TM engine — hold pending review |
| transaction.blocked | Transaction blocked DECLINED by TM engine — hard block |
Your endpoint must return HTTP 200 within 10 seconds. Failed deliveries are retried with exponential backoff for up to 24 hours.
Verify Webhook Signature
Every webhook request carries two headers: X-Veritypro-Signature, an HMAC-SHA512 signature, and X-Veritypro-Timestamp, the unix epoch seconds the payload was signed at. Always verify both before processing the payload.
The signature is computed as HMAC-SHA512(webhookSecret, "{timestamp}.{rawBody}") — the timestamp header value, a literal dot, then the raw request body bytes before JSON parsing. It is encoded as lowercase hex, 128 characters, with no prefix.
Result Types
VerityOutcome
| Value | Meaning |
|---|---|
| approved | All required modules passed. Customer is verified. |
| pendingManualReview | Requires analyst review — do not approve or reject automatically. |
| rejected | Verification failed. Check VerityErrorCode for reason. |
| cancelled | User exited the SDK before completing. |
| failed | Technical error. Check recoverable flag before re-launching. |
VerityVerificationError
| Parameter | Type | Required | Description |
|---|---|---|---|
| code | VerityErrorCode | Required | Named error code, e.g. DOCUMENT_EXPIRED |
| message | string | Required | Human-readable error description |
| recoverable | boolean | Required | True if re-launching the SDK may succeed |
| recommendedAction | string | Optional | UX copy to show the user |
Error Codes
HTTP errors use standard status codes. The response body contains a typed error payload.
| Status | Meaning |
|---|---|
| 400 | Bad Request — missing or invalid parameters |
| 401 | Unauthorized — API key missing or invalid |
| 403 | Forbidden — integration disabled or insufficient permissions |
| 404 | Not Found — session or resource does not exist |
| 409 | Conflict — duplicate request or resource already exists |
| 422 | Unprocessable — request is well-formed but semantically invalid |
| 429 | Rate Limited — slow down and retry after the Retry-After header |
| 500 | Internal Error — transient; safe to retry with backoff |