Skip to main content
GET/api/v1/messaging/otp/validate
Confirm the one-time passcode a user entered against the reference_id returned by Send OTP. Returns whether the code is correct and still within its expiry window.

Headers

Query parameters

Response

Returns an entity whose valid flag is true when the code matches and has not expired, and false otherwise.

Errors

Sandbox

The OTP is always 1234 in sandbox — test with code=1234 and the reference_id from Send OTP against https://sandbox.dojah.io. See Sandbox & test data for every test value.