Generate OTP
Generate OTP
application/json
Request Body required
typeOfMode Typeofmode required
The mode of communication for OTP (e.g., 'email' or 'sms' or 'sms&email')
emailId Emailid required
Possible values: Value must match regular expression \b.+@.+\..+\b
The email address to which the OTP should be sent
phoneNumber Phonenumber required
Possible values: Value must match regular expression ^[6-9]\d{9}$
The phone number to which the OTP should be sent, starting with 6-9 and followed by 9 digits
Responses
- 200
- 422
Successful Response
application/json
Schema
Example (from schema)
Schema
reqId Reqid
errors undefined[] required
data object required
status Status
Status of current transaction
OTPTransactionId Otptransactionid
Unique request id for each OTP request
ExpiryTime Expirytime
Expiry Time for otp
{
"reqId": "string",
"errors": [
null
],
"data": {
"status": "string",
"OTPTransactionId": "string",
"ExpiryTime": "string"
}
}
Validation Error
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
detail object[]
loc string[] required
msg Message required
type Error Type required
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
Loading...