Sandbox - WhatsApp OTP
Send WhatsApp OTP V2
This method allows you to generate and send WhatsApp message containing one-time password in sandbox environment.
Callback Description
Callbacks requires the url to be filled on payload.
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
To obtain the appropriate response, the payload input must adhere to the predetermined scenario. <br> Input other than the scenario will be considered an Invalid Scenario <br>
Response & Status Description
| Msisdn | Description | Response |
|---|---|---|
| 6282123060001 | Success Payload | 201 "OTP sent successfully" requested |
| 6282123060002 | Bad Request | 400 "Validation error" |
| 6282123060003 | Invalid Header | 401 "Authorization failed" |
| 6282123060004 | insufficient quota | 403 "Quota insufficient" |
| 6282123060005 | Blocked Msisdn | 409 "Msisdn invalid: msisdn has been blocked" |
| 6282123060006 | Too Many Request | 429 "Too many request in the allowed time frame" |
post/v2/whatsapp/otp/send/sandbox
Request
- Base URLhttps://api.verihubs.com
- URLhttps://api.verihubs.com/v2/whatsapp/otp/send/sandbox
- Authnone declared. Required headers: App-ID, API-Key
Headers
App-IDstring required
API-Keystring required
Request body
Example request
{
"msisdn": "6282123060001",
"content": [
"Verihubs"
],
"otp": "234123",
"challenge": "update_account",
"time_limit": "300",
"lang_code": "en",
"otp_length": "5",
"callback_url": "https://your-url-callback.com"
}Response
Successful Request
Example response
{
"message": "OTP sent successfully",
"otp": "234123",
"msisdn": "6282123060001",
"session_id": "asddede-asdae234-34sfd3-fe234d",
"try_count": 2
}Changes
No recorded changes to this operation across all 1 revision of this API.