OTP
Verify OTP
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.
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
otp_id?stringFormat
uuididentifier?stringpurpose?stringcode*stringcurl -X POST 'https://v3.ghala.io/v1/otp/verify' \ -H 'Content-Type: application/json' \ -d '{ "code": "string"}'{ "otp_id": "54bb07c0-6b6d-4331-9eba-71e1c890eb14", "verified": true, "purpose": "string", "identifier": "string", "channel": "whatsapp", "verified_at": "2019-08-24T14:15:22Z"}Resend OTP POST
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.
List conversations GET
The inbox. One inbox for every channel, newest first, each with its last message, unread count and 24 hour window.