Create & Manage Users
Generate otp
POST
/
auth
/
generate-otp
Authorizations
Authorization
string
headerrequiredAccess token
Body
application/json
channel
enum<string>
requiredThe communication channel for sending the OTP.
Available options:
sms
, email
, whatsapp
country_code
string
Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided. Use this key along with phone. Not necessary for email.
phone
string
10 digit phone number without country code.
email
string
A string representing the email address.
otp_action
enum<string>
Available options:
login
, register
, reset-password
, verify-phone
, verify-email
, update-phone
, update-email
Response
200 - application/json
message
string
A descriptive message confirming the success or failure of the operation.
success
boolean
Indicates whether the request was successful or failure (true for success, false for failure).
content
object
An object containing the response content.