v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Generate OTP

This page provides you with information on Generate OTP API.

post/auth/v1/web/otp/generate

Request body

identifierTypestring required

Identifier used for token generation. Values: MOBILE, EMAIL, USERNAME.

mobilestring

Mobile number of the customer. Either mobile number or email ID is required to authenticate with username.

emailstring

Email ID of the customer. Either mobile number or email ID is required to authenticate with username.

brandstring required

Name of the brand/org for which authentication needs to be verified.

deviceIdstring required

Unique ID of the device from which the customer has generated the token.

sessionIdstring required

Session ID generated through the v1/token/generate API.

Response

200

Example response

{
  "status": {
    "success": true,
    "code": 200,
    "message": "SUCCESS"
  }
}