OTP
Resend OTP
Send the open code again.
A new code on each channel of the number's open request, which keeps its otp_id, expiry and attempts. 30 seconds apart per channel.
X-Request-Id?stringYour id for this request; it becomes the request_id of any error. Without it the server makes one.
application/json- body
identifier?stringotp_id?stringFormat
uuidpurpose?stringchannels?array<>Items
items <= 2curl -X POST 'https://v3.ghala.io/v1/otp/resend' \ -H 'Content-Type: application/json' \ -d '{}'{ "otp_id": "54bb07c0-6b6d-4331-9eba-71e1c890eb14", "expires_at": "2019-08-24T14:15:22Z", "channels": [ { "channel": "whatsapp", "status": "queued", "code": "string", "reason": "string" } ]}Send OTP POST
Send a one-time code. A different 6-digit code on each listed channel; a channel that can not send is refused on its own, and nothing is charged for it. Sending again to the same number and purpose ends the open code.
Verify OTP POST
Check a code. Succeeds once per request. A wrong, expired, used or unknown code all answer 422 invalid_code; 5 wrong codes end the request.