Results

This section provides details on how to retrieve session results for an Age verification session. Two options are available:

  • Fetching the session status (GET endpoint)
  • Webhook notifications

By default, the document scan and credit card age verification method does not return an immediate result upon user redirection.

We recommend polling the result endpoint every 5 seconds, up to three times, or utilising webhooks if using the document scan or credit card method.

Alternatively, enabling the property synchronous_checks will hold the user in the Yoti AVS flow and only redirect once results have finished processing.

HTTP
Copy
HeaderDescription
AuthorizationAPI Key to call the Yoti Age API. Should be sent as a 'Bearer {{API_TOKEN}}'.
Content-Typeapplication/json
Yoti-SDK-IdYour unique SDK ID (uuid)

Example response

Complete
Pending
Copy
FieldValueDescription
sdk_iduuidSDK ID for a given session.
callback_urlstringConfigured callback_url property in session creation.
notification_urlstringConfigured notification_url property in session creation.
typeAGE, OVER, UNDERConfigured type property in session creation.
age_estimationobjectConfigured age_estimation properties in session creation.
digital_idobjectConfigured digital_id properties in session creation.
doc_scanobjectConfigured doc_scan properties in session creation.
credit_cardobjectConfigured credit_card properties in session creation.
mobileobjectConfigured mobile properties in session creation.
loginobjectConfigured login properties in session creation.
la_walletobjectConfigured la_wallet properties in session creation.
social_security_numberobjectConfigured social_security_number properties in session creation.
ageintegerReturns the actual age if type AGE. Otherwise returns the threshold value.
status

PENDING

IN_PROGRESS

FAIL

COMPLETE

ERROR

CANCELLED

EXPIRED

PENDING - User has not started any checks.

IN_PROGRESS - Checks have begun on the session, awaiting result to be returned.

FAIL - The session has been completed, however the user has failed to meet the age threshold. FAIL will be returned only for 'OVER' and 'UNDER' attempts.

COMPLETE - The session has been completed, the user has passed the required threshold or an age has been returned. Always 'COMPLETE' if AGE type is configured.

ERROR - We could not provide an age result or calculate the threshold. This may be because the face was not recognised during age estimation or if the ID document was processed via Doc Scan, but we do not believe that it is a genuine document.

CANCELLED - The user no longer wishes to prove their age, and aborts the session.

EXPIRED - The session has expired and is no longer useable

Additional states may be added in future releases, any mapping methods should account for 'unknown' values.

methodstringThe AV method used to complete the session.
reference_idstringConfigured reference_id property in session creation.
created_attimestampTimestamp of session creation.
expires_attimestampTimestamp of session expiry.
updated_attimestampTimestamp of last session update.
iduuidID of session.
evidence_iduuidAn ID relating to a specific Age verification attempt.
biometric_consent_requiredbooleanConfigured biometric_consent_required properties in session creation.
biometric_consent_given_attimestampTimestamp of biometric consent.
terminal_idstringValue set for the Yoti-Terminal-Id header in session creation.
synchronous_checkstrue / falseValue set for the synchronous_checks property.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard