Go to account

OTP

Verify OTP

Confirm a one-time password submitted by a user. Submit the OTP alongside the destination number it was sent to — a Verified status in the response confirms a successful match.

POST

/v1/otp/verify

Authorization

Header

X-Emisri-Api-Key: your_secret_key

Required

yes

Request body

application/json

FieldTypeRequiredDescription
destinationstringyesThe phone number the OTP was originally sent to, in international format without the + sign (e.g. 2348012345678).
otpstringyesThe one-time password entered by the user, as received via SMS.

Response · 200 OK

application/json

FieldTypeRequiredDescription
successbooleantrue when the OTP was verified successfully.
dataobjectThe response payload.
metaobjectRequest metadata.