Notifications

Each session has a configured 'time to live' (TTL) which must be above 60 seconds (1 minute). When a session is created, it remains active until it's time to live is reached.

To receive the result of an age verification, a HTTP endpoint (notification URL) needs to be listening for a JSON payload in the format of the below through a POST method.

Notifications require HTTPS and will be reattempt if a 200 status code is not received. It is important to acknowledge the notification with a 200 status code to avoid receiving repeat notifications.

Below is an example payload:

JSON
Copy
FieldValueDescription
methodDOC_SCANThe method used to complete the Age verification session.
result

true

false

The result is true if the user met the OVER or UNDER criteria, false if not. The result is always true for type of AGE when an age is returned.
ageintegerReturns the actual age if type AGE. Otherwise returns the threshold value.
session_keyuuidThe Age verification session ID.
reference_idstringThe reference_id submitted to the session create endpoint is returned in this field.
iduuidNotification ID.
timestampepoch timestampTimestamp for when the notification was sent.
notification_urlstringThe notification_url submitted to the session create endpoint is returned in this field.
evidence_iduuidAn ID relating to a specific Age verification attempt.
state

FAIL

COMPLETE

ERROR

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 the ID document could not be processed through Doc Scan.

Additional states may be added in future releases and therefore mapping methods should contain default values.

check_type

NONE

ACTIVE

PASSIVE

Returns the type of liveness check that was performed in the Age verification session. This is specified as the 'level' at session creation.
sequence_numberintegerThe attempt number for the current notification. Starts at 1.
signaturestringSigned notification payload which can be verified using the Age verification public key.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
Notifications