Generate OTP for a user
Header Parameters
API Key provided by Tuned Global for accessing the service.
Query Parameters
The user's mobile number. Used for SMS OTP delivery. Optional if email is provided.
Hash value for SMS verification, if required by the provider.
Language code for OTP message localization.
The OTP provider to use for generating and sending the OTP.
NoneGBillingTwilioFirebaseEmailAwsSnsInfobipEtLocalSonsyThe user's email address. Used for email OTP delivery. Optional if msisdn is provided.
Response
OK
Response Attributes
Bad Request
Unauthorized
Forbidden
Not Found
Response
Status Codes
200
OTP generated and sent successfully.
400
Invalid parameters or configuration.
401
Authentication failure.
403
The API key doesn't have permissions to perform the request.
404
The requested resource does not exist.
Error Codes
600
telco settings not found for group/country.
601
Msisdn or email not found in request.
601
Msisdn must not exceed 15 characters.
601
Failure to properly authenticate yourself in the request.
601
Email not supplied.
601
OTP Provider not supported.
603
Msisdn is not valid.
607
Error generating OTP in db.