Launch the user view

Web client

The next step is to load the Yoti client SDK.

Before you start
Please have a look at our best practices for a better performance of the SDK.
Good to know...
This section refers to the implementation on web clients, please see the 'mobile integration' section for details of our native Android and iOS SDKs.

How it works

The constructed URL​ (using the sessionId and session token), which loads the customised Yoti Client SDK, can be used in several ways:

  • Within an iframe on your webpage
  • As a link on your webpage
  • As a link shared securely with a user

In the response to your create session request, you will have received:

  • Session ID
  • Session Token

These values can now be used to create a URL.

HTTP
Copy
URL ComponentDescription
sessionIdThe session ID from the Yoti response.
sessionTokenThe session token from the Yoti response.

The example below demonstrates the use of an iframe:

Markdown
Copy

Once the Yoti Client SDK has launched it will take the user through the ID document capture flow.

The Yoti Client SDK will fetch the verification session configuration that was defined on session creation. This will provide configuration for the captures to be performed, and which methods are allowed.

Having received the session configuration, the Yoti Client SDK will handle the capture of all resources necessary to process the requested tasks and checks, and submit them to the server.

Once the required resources (and their associated media) have been captured and uploaded, the end user is redirected back to the relying business client so that they may continue their journey via the success or error URLs. The tasks and checks are performed in the background, and any updates are sent to the updates URL (if subscribed) or can be found by calling the session retrieval endpoint.

Knowledge base
Please head over to our knowledge base on selecting multiple documents / countries in the user view.

Mobile client

The mobile integration provides a native version of Yoti Doc Scan which can be integrated into your own Mobile App, as opposed to being rendered through a webpage.

The mobile integrations that we currently support are listed below for the Yoti Doc Scan integration. Please select your preferred language to continue.

Error codes

Before you start
Please have a look at our best practices for a handing errors.
Error CodesPlatform - Mobile or WebDescriptionRetry Possible
1000MobileNo error occurred - the end-user cancelled the session for an unknown reason.Yes
2000Mobile/WebUnauthorised request (wrong or expired session token).Yes New session required.
2001Mobile/WebSession not found.Yes New session required.
2002Mobile/WebSession expired.Yes New session required
2003Mobile/WebSDK launched without session Token.--
2004Mobile/WebSDK launched without session ID.--
3000Mobile/WebYoti's services are down or unable to process the request.Yes
3001MobileAn error occurred during a network request.Yes
3002Mobile/WebUser has no network.Yes
4000Mobile/WebThe user did not grant permissions to the camera.Yes The end-user will be asked again to grant permissions to the camera
5000Mobile/WebNo camera. (When user's camera was not found and file upload is not allowed)No
5001WebUnsupported browser/platform by the liveness flow.No
5002Mobile/WebNo more local tries for the liveness flow.Yes
5003MobileSDK is out-of-date - please update the SDK to the latest version. (see github pages)No
5004Mobile/WebUnexpected internal error.No
5005MobileUnexpected document scanning error.No
5006Mobile/WebUnexpected liveness error.No
5007WebiOS browser in use other than Safari. Only Safari on iOS may access camera.No
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard