get https://api.verihubs.com/v1/otp/send
This method helps you to generate and send sms containing one-time password to destination number
Callback Description
When you want to use callback_url payload, you only need to put for example
your-callback-url.com/callback
Example callback that we'll send
your-callback-url.com/callback?session_id=d0f5fb5c-2d50-4d3f-aea7-20018ab15806&status=1
Payload | Description |
---|---|
session_id | ID of the specific message |
status | Latest status of the request |
Callback Status Description
Status | Description | Condition |
---|---|---|
0 | Requested | SMS OTP has been requested. |
1 | Delivered | SMS OTP has been delivered to destination number. This status will be charged. |
4 | Failed | Operator cannot send SMS OTP to destination number |
5 | Request Error | Verihubs cannot reach Operator |
7 | Undelivered | SMS OTP has not been delivered to destination number (response received from Operator). This status will be charged. |
8 | RTODR | No DR received from Operator after certain period. This status will be charged. |
9 | Blocked | Destination Number has been blocked by Verihubs's system |