Get age estimation

Below are the end points and integration configuration you need to integrate.

Before you start
You will need the Yoti App on your phone and to have registered your business with Yoti.

The image requirements to use Age Scan are:

  • Yoti only accepts JPEG’s encoded as a base64 image
  • Base64 body must be below 100KB (~70KB JPEG)
  • The minimum face dimensions we accept is 96 x 96 pixels

Get Age Estimation

After completing the Yoti onboarding, you will need to complete authentication for the API by using the Yoti SDK to simplify the process for requesting to Yoti. The Yoti SDKs are available via popular dependency management systems. Further details can be found on the pages of the specific projects.

Javascript
PHP
Python
Java
Go
C#
Ruby
Copy

Once you have added the Yoti SDK dependency to your project, you can use it to build and send your request. See the code snippets below for examples.

Javascript
PHP
Python
Java
Go
C#
Ruby
Copy

The request payload should be in the following format: This JSON string will be the data parameter in the withPayload above code snippet.

JSON
Copy
API Link
Jump straight to our API references with code snippets if you prefer.

Example responses

The response received from the API will be below:

The uncertainty value is a confidence score. Yoti recommends rejecting any response with an uncertainty greater than 6.0. Typically this indicates a problem with image capture.

JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard