Request OTP
Send an OTP (One-Time Password) code to a user’s phone number for authentication. This is the first step in the phone-based authentication flow.OTP codes are valid for 5 minutes and can be requested up to 5 times per minute per phone number.
Request Body
User’s phone number in international format (e.g., “+37060000000”)
Type of OTP request
login- For existing usersregister- For new user registrationverify- For phone verification
Response
Indicates if the request was successful
Human-readable message about the operation
Next Steps
After successfully requesting an OTP:- Verify OTP: Use the Login endpoint with the phone number and OTP code
 - Handle Errors: Implement proper error handling for rate limits and validation errors
 - User Experience: Show appropriate loading states and countdown timers
 
Login with OTP
Complete the authentication flow by logging in with the OTP code