Authentication
Verify an email address with the 4-digit code
POST
Access: Public, no token needed.
Mobile counterpart of GET /auth/verify-email. Marks the account as verified when the email belongs to an unverified account and the code matches the most recently issued one and is less than 15 minutes old. Codes come from POST /auth/signup or POST /auth/resend-verification with isMobile: true. A wrong code, an expired code, an unknown email and an already-verified account all produce the same 400. No tokens are returned; sign in afterwards.
application/json- body
email*stringEmail address the code was sent to.
Format
emailcode*stringThe 4-digit code from the email, as a string.
Match
^[0-9]{4}$Email verified
application/json- response
status*integersuccess*booleanmessage*stringdata*unknowncurl -X POST 'http://localhost:4000/api/v1/auth/verify-email-otp' \ -H 'Content-Type: application/json' \ -d '{ "email": "adaeze.okonkwo@example.com", "code": "4821"}'Example Response
{ "status": 200, "success": true, "message": "Email verified successfully. You can now sign in.", "data": null}
HomeLink Hub