Skip to main content
POST
Generate OTP

Authorizations

Authorization
string
header
required

Access token

Headers

x-debug-mode
boolean

This param is used to enable debug mode. If debug mode is enabled, the API will return OTP as well. This is only for development and testing purposes.

Body

application/json
channel
enum<string>
required
Available options:
sms,
whatsapp
phone
string
required

10 digit phone number without country code.

Pattern: ^\d{10}$
country_code
string
default:+91
Pattern: ^\+?\d{1,4}$
otp_action
enum<string>
default:verify-phone
Available options:
register,
login,
reset-password,
verify-phone,
update-phone

Response

OK

message
string
required

A descriptive message confirming the success or failure of the operation.

success
boolean
required

Indicates whether the request was successful or failure (true for success, false for failure).

content
OtpContent · object
required