post https://api.verihubs.com/v1/whatsapp/otp/send
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
628001 is the only valid msisdn to use.
Any other valid msisdn format will be marked as a contact that is not registered on WhatsApp.
Currently there are 2 flows for SANDBOX callback:
Using 628001: sent -> delivered -> read
Using other valid msisdn format but not "628001": failed
Callback Status Description
Status | Description | Condition |
---|---|---|
0 | Requested | OTP has been requested |
1 | Sent | OTP has been sent to Whatsapp server |
2 | Delivered | OTP has been delivered to destination number |
3 | Read | OTP has been read by user |
4 | Sent | OTP has been verified by user |
5 | Unverified | OTP has reached time limit |
6 | Failed | Whatsapp cannot send OTP to destination number |
7 | Request Error | Verihubs cannot reach WhatsApp |