Send OTP
https://core.hisend.hunnovate.com/api/v1/otp/send?api_key={api_key}&customer_identifier={customer_identifier}&channel={channel}&length=6&expiry=5
Send and Validate OTPs Across SMS, Email, and WhatsApp with Ease
Query Params
customer_identifier string required
Email or phone number of the Customer
channel string required
Channel by which the email would be sent, could be sms,whatsapp or email
length string optional default to 6
The length of the One time password, it could be between 4 and 10
expiry string optional default to 5
The duration of the One time password before it expires
api_key string required
The api key from your dashboard
422 Error Response Example
{
"message": "Insufficient wallet balance",
}
200 Success Response Example
{
"data": {
"customer_identifier": "example@hunnovate.com",
"channel": "email",
"reference": "01jtdre6ga9vqk1ce154p0jjwr",
},
"message": "OTP generated successfully",
}