Skip to main content

Risk Analysis

Optional Risk analysis feature is available since version 5.17.0. Add Sardine SDK dependency to enable it. Instructions on how to provide the dependency can be found here: https://docs.sardine.ai/docs/risk-sdk/android

Create onboarding session​

Create an onboarding session in order to receive access_token.

In the following command replace sessionKey and customerId with actual values, ie. "sessionKey": "e821b8fe-e3b4-4d90-b792-919c8bc3341e-test" and "customerId": "incode-test".

curl --location --request POST 'https://api.sandbox.sardine.ai/v1/identity-documents/tokens' \
--header 'Authorization: Basic ZDg5NDg1ZjMtOTA2Ny00NTliLWI2MDMtNmFlMDYyMzFjYzgwOmNlNmQ2MTE4LWM0MzktNGI2MC1hNjE4LTcxOTM5Yzk1NmU2ZQ==' \
--header 'Content-Type: application/json' \
--data-raw '{
"sessionKey": "YOUR_SESSION_KEY",
"customerId": "YOUR_CUSTOMER_ID",
"platform": "android",
"provider": "incode"
}'

Run the above command from the Terminal, and store access_token from the response.

Init the SDK​

Once you have access_token, please follow this guide on how to initialize the SDK and provide the access_token as a parameter for SessionConfig.Builder.setExternalToken(access_token) when building SessionConfig before starting the flow.

See Risk Analysis on the dashboard​

Once the flow is completed Risk analysis results will be shown on this webpage: https://dashboard.sandbox.sardine.ai/document-verifications

For access to this webpage please contact your Incode representative.