Generate OTP
Auth
Generate OTP
Generates and sends an OTP for authentication or verification. Returns an otp_token to pass to the verify-otp endpoint.
POST
Generate OTP
Documentation Index
Fetch the complete documentation index at: https://www.commercengine.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Access token
Headers
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
- GenerateOtpWithPhone
- GenerateOtpWithEmail
Available options:
sms, whatsapp 10 digit phone number without country code.
Available options:
register, reset-password, verify-phone, update-phone Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.