Retrieve Results

After the user has completed their session you will then be able to retrieve the result of the session.

For any active session, you can use the Yoti API to retrieve a report on the session (containing all the end-user's uploaded documents, and recommendations). If you wish to be notified of the session completion, please use notifications.

This sections explains how to:

  • Retrieve the results of the session

If you would like information on retrieving the ID document images, user information and the report head here.

HTTP
Copy

SDK Example:

Javascript
PHP
Python
Java
Go
Copy

Example of the get session response of a completed session, outlining the state of the checks. A recommendation value of "APPROVE" will be issued for each one. The person in branch will not complete the session if:

  • All / Any of the documents are not present
  • The profile data doesn't match
  • If the wrong documents are brought in
  • If the documents are not valid

Example Responses:

The below responses are examples of the various stages of fetching a session. Typically it's recommended to use the Session Completion webhook notification to be noticed of a completed Session.

These examples are based on a three document flow, two Identity documents and one Supplementary document.

You can use the following keyboard shortcuts to expand and collapse the JSON code blocks

  • Ctrl + I to Expand
  • Ctrl + Y to Collapse

Immediately after session creation

JSON
Copy

After the first uploaded document

JSON
Copy

After the second uploaded document

JSON
Copy

After the third uploaded document

JSON
Copy

Session Completion

JSON
Copy

The following is present in every session result.

ValueDescription
ResourcesA container of all ID documents and liveness captures for this session.
ChecksA container of all checks performed for this session

Retrieving Media

A second API call will need to be made to retrieve the media related to a session e.g document images.

SDK Example:

Javascript
PHP
Python
Java
Go
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated by Jason Martyres