Mobile (without UI)

AI Tools

If you want to integrate the service without using the Yoti UI please see the below instead.

One-time password generation

When verifying someone's age via the mobile method, you can optionally send a one-time password (OTP) to the phone number that the user provides, to ensure they have access to this mobile phone. If the phone number has already been verified (i.e. through a pre-existing OTP), this step may be skipped.

HTTP
Copy
HeaderDescription
AuthorizationAPI Key to call the Yoti Age API. Should be sent as a Bearer token.
Content-Typeapplication/json
Yoti-SDK-IdYour unique Yoti-Sdk-Id (uuid)

Request body

JSON
Copy
ParameterTypesDescription
phone_numberStringThis should be the target phone number to receive an OTP, including the country prefix.
consent_idStringReference stored by the telco for each check.

Example response

Below is an example response.

Success
Failure
Copy

Headless Mobile check

The phone number is checked by third-party providers.

HTTP
Copy
HeaderDescription
AuthorizationAPI Key to call the Yoti Age API. Should be sent as a Bearer token.
Content-Typeapplication/json
Yoti-SDK-IdYour unique Yoti-Sdk-Id (uuid)

Request body

JSON
Copy
ParameterTypesDescription
phone_numberStringThe phone number to verify. This must include the country code prefix.
consent_idStringReference stored by the telco for each check.
otp*String

Optional, if an OTP was requested, this can be sent to verify the recipient has received the OTP.

If the phone number is already verified, an OTP may not be required.

Example response

Below is an example response.

Success
Error
Copy
FieldDescription
methodThe AV method used. MOBILE is returned for mobile checks
typeDictates the threshold type. For mobile checks only OVER is returned
thresholdThe age threshold that has been met
ageThe age threshold that has been met
resultReturns true if the threshold (18) has been met. Returns false if not met, or on error
status

COMPLETE - The phone number has been associated with an Over 18 individual

ERROR - We could not provide an age result, because we didn't have enough info associated with that phone number

FAIL - The phone number has been associated with an Under 18 individual

evidence_idThe Evidence ID can be re-shared with Yoti to provide evidence that a check of a mobile phone number was performed. The mobile phone number or associated personal information is not stored by Yoti, this can never be retrieved. Yoti will be able to confirm that a check took place at a specific time, the processing steps and result of the check

Headless check error codes

Error CodeDescription
E200001Internal server error
E200003Unable to get a response from requesting OTP
E200006Invalid country code
E200007Bad request
E200008Unauthorised
E200009Not allowed
E200010Not found
E200011Invalid message template
E200012Phone number not whitelisted
E200013Error received from supplier
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard