Verify phone OTP

Verifies the OTP sent to the phone number and completes authentication. Optionally sets user's preferred language.

Request

This endpoint expects an object.
phoneNumberstringRequired

Phone number without country code (e.g., 589595029)

countryCodestringRequired

Country calling code with + prefix (e.g., +971, +1, +44)

codestringRequired
The OTP code received via SMS
languagestringOptional

Optional: User’s preferred language (e.g., ‘en’, ‘ar’, ‘fr’)

Response

OTP verified successfully
userobject
sessionobject
isNewUserboolean
Whether this is a new user registration

Errors