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
Good to know
Webhook notifications should be subscribed to for the ID AV method as this may not always return an immediate result.
HTTP
Copy
HeaderDescription
AuthorizationAPI Key to call the Yoti Age Verification API. This must be sent as a bearer token
Content-Typeapplication/json
Yoti-SDK-IdYour unique SDK ID (uuid)

Example response

Complete
Pending
Copy
FieldValueDescription
sdk_iduuidSDK ID for a given session.
notification_urlstringConfigured notification_url property in session creation.
typeAGE, OVER, UNDERConfigured type property in session creation.
doc_scanobjectConfigured doc_scan properties in session creation.
ageintegerReturns the actual age if type AGE. Otherwise returns the threshold value.
status

PENDING

IN_PROGRESS

FAIL

COMPLETE

ERROR

CANCELLED

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.

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.

Additional states may be added in future releases and therefore mapping methods should contain default 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.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard