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.
phoneNumber
Phone number without country code (e.g., 589595029)
countryCode
Country calling code with + prefix (e.g., +971, +1, +44)
code
The OTP code received via SMS
language
Optional: User’s preferred language (e.g., ‘en’, ‘ar’, ‘fr’)
Response
OTP verified successfully
user
session
isNewUser
Whether this is a new user registration
