Generate KYC token
Creates a KYC verification session token. Pass the returned authToken to your frontend or SDK to launch the verification flow.
Authorizations
The request must contain basic auth headers where username is API key and password is API secret.
In order for you to start using our API you will need an API key and API secret.
Both can be retrieved by contacting iDenfy's support or iDenfy's sales team.
Body
A unique string identifying the client on your side.
100IDENTIFICATION— document scan + selfie (default)DOCUMENT— document scan only
IDENTIFICATION, DOCUMENT Optional internal reference. Returned as-is in webhooks.
40If true, generates an 8-digit mobile app code returned as digitString.
Token validity in seconds. Maximum 2,592,000 (30 days).
0 <= x <= 2592000UI language code (e.g. en, de, ko).
7Restrict accepted document-issuing country (ISO alpha-2).
Seconds the user has to complete verification once started.
60 <= x <= 3600Restrict accepted document types (e.g. PASSPORT, ID_CARD).
Pre-fill client first name. Mismatch triggers SUSPECTED status.
100Pre-fill client last name. Mismatch triggers SUSPECTED status.
100Pre-fill client date of birth.
Pre-fill client nationality.
Pre-fill document number.
50Pre-fill personal/national ID number.
50Pre-fill client sex.
M, F Pre-fill document expiry date.
Pre-fill document issue date.
Client address for Proof of Address verification.
Redirect URL on successful verification.
Redirect URL on failed verification.
Redirect URL when verification result is unverified.
Override webhook callback URL for this session only.
Enable manual review for successful verifications.
Enable manual review for failed verifications.
Questionnaire key for this session. Pass null to disable.
Request extra document steps. See Additional Steps documentation.
Data for COMPARE-type additional steps.
Minimum required age. Below this triggers SUSPECTED status.
Maximum allowed age. Above this triggers SUSPECTED status.
Response
Token created successfully.
Pass this to the frontend, SDK, or redirect URL to start verification.
Unique session ID. Store this to correlate with webhook results.
IDENTIFICATION, DOCUMENT Direct URL to the hosted verification flow. Redirect the user here or embed in an iFrame.
Token expiry time in seconds.
8-digit mobile code. Only present when generateDigitString was true.