Need help?
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
| Field | Type | Required | Description |
|---|---|---|---|
| destination | string | yes | The phone number the OTP was originally sent to, in international format without the + sign (e.g. 2348012345678). |
| otp | string | yes | The one-time password entered by the user, as received via SMS. |
Response · 200 OK
application/json
| Field | Type | Required | Description |
|---|---|---|---|
| success | boolean | — | true when the OTP was verified successfully. |
| data | object | — | The response payload. |
| meta | object | — | Request metadata. |