Creating DocuPass Identity Verification Session
You need to create a verification session for every user requiring identity verification, to do so, submit a POST request to:
https://api.idanalyzer.com/docupass/create
Parameters
You can send parameters using x-www-form-urlencoded
, application/json
or multipart/form-data
.
Key | Value | Description |
---|---|---|
apikey |
String | Required Your private API key is available under your web portal. |
type |
0: Iframe Module 1: Mobile Module 2: Redirection Module 3: Live Mobile Module |
Required DocuPass module |
companyname |
Your company or product name | Required Your company name will be displayed throughout verification page so that end-user knows they are submitting identity information to your company |
callbackurl |
Webhook/Callback URL to receive verification result | Required Images and identity data will be sent to this url whenever a user succeeds or fails a verification. You must either enable vault_save or specify a callbackurl so that you can process verification result. |
biometric |
0: Disabled (Default) 1: Photo Biometric Verification 2: Video Biometric Verification |
OptionalAsk user to take a selfie photo or selfie video for face verification |
biometric_threshold |
Number between 0 to 1 (Default: 0.4) | Optional Specify the minimum score to pass facial biometric verification |
authenticate_minscore |
Number between 0 to 1 (Default: 0.3) | Optional Document must meet minimum authenticity score to pass validation. Set 0 to disable validity/authenticity check. |
authenticate_module |
1: Module v1 2: Module v2 (Default) quick: Quick check against fake ID database |
Optional Specify module used for validating the document. |
maxattempt |
Number between 1 to 10 (Default: 2) | Optional The number of maximum fail attempts for each verification request. When max attempt is reached, a failed callback will be sent to your server and user will not be able to re-attempt identity verification unless you create a new verification request. |
successredir |
URL | Optional Browser will be redirected to this URL when identity verification succeeds. DocuPass reference code and customid will be appended to the end of URL, e.g. https://www.yourwebsite.com/success.php?reference=XXXXXXXX&customid=XXXXXXXX |
failredir |
URL | Optional Browser will be redirected to this URL when identity verification failed. DocuPass reference code and customid will be appended to the end of URL, e.g. https://www.yourwebsite.com/failed.php?reference=XXXXXXXX&customid=XXXXXXXX |
customid |
String | Optional A custom string that will be sent back to your server's callback URL, and appended to redirection URLs set by successredir and failredir as a query string. It is useful for identifying your user within your database. This value will be stored under docupass_customid under Vault. |
reusable |
Boolean (Default false ) |
Optional Enabling this parameter will allow multiple users to verify their identity through the same URL, a new DocuPass reference code will be generated for each user automatically. |
phoneverification |
Boolean (Default false ) |
Optional Subscriber Only Whether to ask user to enter a phone number for verification, DocuPass supports both mobile or landline number verification. Verified phone number will be returned in callback JSON. |
sms_verification_link |
Full international mobile number | Optional Subscriber Only DocuPass will send SMS to this number containing DocuPass link to perform identity verification, the number provided will be automatically considered as verified if user completes identity verification. Number should be provided in international format such as +1333444555 , if an invalid or unreachable number is provided error 1050 will be thrown. You should add your own thresholding mechanism to prevent abuse as you will be charged 1 quota to send the SMS. |
documenttype |
P: Passport D: Driver's License I: Identity Card |
Optional User must upload a specific type of document. For example "PD" would accept both passport and drivers license. |
documentcountry |
ISO ALPHA-2 Country Code | Optional User must upload document issued by specified country. Separate multiple values with comma. For example "US,CA" would accept documents from United States and Canada. |
documentregion |
State/Region full name or abbreviation | Optional User must upload document issued by specific state/region. Separate multiple values with comma. For example "CA,TX" would accept documents from California and Texas. |
dualsidecheck |
Boolean (Default false ) |
Optional Check if the names, document number and document type matches between the front and the back of the document when performing dual-side scan. If any information mismatches error 14 will be thrown. |
verify_expiry |
Boolean (Default true ) |
Optional Only accept document that has not expired |
verify_documentno |
Document number requiring verification | Optional User must upload document matching the document number supplied to pass verification. |
verify_name |
Full name including first name and last name requiring verification | Optional User must upload document matching the name supplied to pass verification. |
verify_dob |
Date of birth requiring verification, in YYYY/MM/DD format | Optional User must upload document matching the date of birth supplied to pass verification. |
verify_age |
Age range, example: 18-40 | Optional Uploaded document must show an age between the specified values to pass verification. |
verify_address |
Full address requiring verification | Optional User must upload document matching the address supplied to pass verification. |
verify_postcode |
Full postcode requiring verification | Optional User must upload document matching the postcode supplied to pass verification. |
verify_phone |
Full internation mobile or landline number | Optional Subscriber Only DocuPass will attempt to verify this phone number as part of the identity verification process, both mobile or landline are supported, if this value is provided phoneverification will be automatically enabled but users will not be able to enter their own numbers or change the provided number. Number should be provided in international format such as +1333444555 . |
aml_check |
Boolean (Default false ) |
Optional Check document holder's name and document number against ID Analyzer AML Database. |
aml_database |
String | Optional Specify the source databases to perform AML check, if left blank, all source databases will be checked. Separate each database code with comma, for example: un_sc,us_ofac . For full list of source databases and corresponding code visit AML API Overview. |
aml_strict_match |
Boolean (Default false ) |
Optional By default, entities with identical name or document number will be considered a match even though their birthday or nationality may be unknown. Enable this parameter to reduce false-positives by only matching entities with exact same nationality and birthday. |
contract_generate |
Template ID | Optional Generate a document using information from uploaded ID, without user reviewing or signing the document. |
contract_sign |
Template ID | Optional Generate a document using information from uploaded ID, and have the user review and sign the document after identity verification. |
contract_format |
PDF DOCX HTML | Optional Output legal document format. |
contract_prefill_data |
JSON String | Optional JSON data in key-value pairs to autofill dynamic fields, data from user ID will be used first in case of a conflict. For example, passing {"myparameter":"abc"} would fill %{myparameter} in contract template with "abc". |
vault_save |
Boolean (Default true ) |
Optional Save user documents and parsed information into vault. This feature is particularly useful if you wish to inspect verification results. You must either enable vault_save or specify a callbackurl so that you can process verification result. |
return_documentimage |
Boolean (Default true ) |
Optional Return document image uploaded by user in the callback request. |
return_faceimage |
Boolean (Default true ) |
Optional Return face image uploaded by user in the callback request. |
crop_document |
Boolean (Default false ) |
Optional Attempt to crop the user document by removing irrelevant regions, only applies if return_documentimage is set to true.
|
return_type |
0: Base64-encoded Image Content 1: Hosted Image URL (Default) |
Optional Specify the type of image being returned, either base64-encoded image content or an URL to the image. (URL to image will be kept for only 7 days) |
welcomemessage |
String | Optional Replace generic greeting message on the first page with your customized text (max 1,000 characters) |
nobranding |
Boolean (Default false ) |
Optional Subscriber Only Hide branding logo on all DocuPass pages. |
logo |
URL | Optional Subscriber Only Custom branding logo. |
customhtmlurl |
URL | Optional Subscriber Only Use your own HTML page and CSS for DocuPass. Once you have made changes to the HTML and CSS you need to upload them to your own server, at the start of each session DocuPass will download the latest HTML page from your server. Read Full Guide |
language |
en fr nl de es sr zh-TW zh-CN | Optional DocuPass automatically detects user device language and displays corresponding language. Set this parameter to override automatic language detection. |
expiry |
Number of seconds between 600 to 15552000 (Default 180 days) | Optional Number of seconds before DocuPass session expires. Upon expiry, user will not be able to continue with the current session, a failed callback will also be sent. |
qr_color |
6 Digit Hex Color (Default 000000 ) |
Optional Color of the QR Code Foreground |
qr_bgcolor |
6 Digit Hex Color (Default FFFFFF ) |
Optional Color of the QR Code Background |
qr_size |
Integer 1-50 (Default 5) | Optional Size of QR Code |
qr_margin |
Integer 1-50 (Default 1) | Optional Border thickness of QR Code |
Supply Existing Document or Face Image
You can supply existing document or face photo to DocuPass. If you supply document images, your users will not be asked to take a photo of their document. Similarly, if you submit a face photo, the user will not be asked to take a selfie.
Key | Value | Description |
---|---|---|
document |
Image encoded in multipart/form-data | Optional For Content-Type: multipart/form-data , upload a document image to skip document photo
capturing steps.
|
document_base64 |
Base64-encoded image | Optional Submit a base64 encoded document image to skip document photo capturing steps. |
document_url |
Image URL | Optional Submit a document image URL to skip document photo capturing steps. |
document_back |
Image encoded in multipart/form-data | Optional For Content-Type: multipart/form-data , upload a document back-side image to skip document photo
capturing steps.
|
document_back_base64 |
Base64-encoded image | Optional Submit a base64 encoded document back-side image to skip document photo capturing steps. |
document_back_url |
Image URL | Optional Submit a document back-side image URL to skip document photo capturing steps. |
face |
Image encoded in multipart/form-data | Optional For Content-Type: multipart/form-data , upload a face image to skip capturing selfie photo.
|
face_base64 |
Base64-encoded image | Optional Submit a base64 encoded document image to skip capturing selfie photo. |
face_url |
Image URL | Optional Submit a document image URL to skip capturing selfie photo. |