MESSAGING SERVICES
Send OTP
Deliver OTPs to your users via multiple channels such as Whatsapp, voice, sms and Email
π NOTE
You would need to register a sender ID with the endpoint mentioned below. All messages sent before then will be delivered with the default sender ID
Request
[POST]
Header
Parameter | Type | Description |
---|---|---|
AppId | string | you would need to create an app to get your app ID |
Authorization | string | public secret key e.g prod_sk_1T1eSavlZxy02OT3OWlvbxK4G |
Body parameter
Parameter | Type | Description | |
---|---|---|---|
sender_id * | string | registered Sender ID | required |
destination * | string | Phone number of recipient for Whatsapp, Voice and SMS | required |
channel * | string | can be either whatsapp, sms, voice, and email | required |
string | Email Recipient for Email OTP | optional | |
expiry * | integer | number of minutes before token becomes Invalid. Default is 10 | optional |
length | integer | length of token(4 to 10 characters), default is 6 characters | optional |
priority | boolean | indicate if you want to send in priority mode. Default is false | optional |
otp | integer | length of token should be between 4-10 digits which is optional | optional |
πNOTE
There is the priority feature. You can automatically resend messages via any of the channels if one doesnβt get delivered. If the priority is set to true, the default setup is sms, whatsapp, and then voice. You can choose to set it however way you want in the channel parameter.
You can decide to use the OTP parameter send OTP, instead of the generated one.
Sample response
Response
Test Credentials for Sandbox
Kindly use this Test OTP in sandbox Environment
OTP = 1234
Was this page helpful?