Skip to Content
HomeLink Hub
Authentication

Resend the email verification link or code

POST
/api/v1/auth/resend-verification

Access: Public, no token needed.

Issues a fresh verification link, or a fresh 4-digit code valid for 15 minutes when isMobile is true, and emails it. Always answers 200 with a generic message, whether the email is unknown, already verified, or actually sent, to prevent email enumeration. The new token or code replaces the previous one, which stops working. The email is sent before the response, so a mail-server failure surfaces as a 500. The mobile app calls this after a sign-in is rejected with errorData.code = EMAIL_NOT_VERIFIED.

Request Body

application/json
  1. body
email*string

Email address of the account to verify.

Formatemail
isMobile?boolean

Send true from the mobile app to receive a 4-digit code instead of a link.

Response Body

  • Web request (link flow)
  • Mobile request (isMobile: true, code flow)
application/json
  1. response
status*integer
success*boolean
message*string
data*unknown
Example Request
curl -X POST 'http://localhost:4000/api/v1/auth/resend-verification' \  -H 'Content-Type: application/json' \  -d '{  "email": "adaeze.okonkwo@example.com",  "isMobile": true}'
Example Response
{  "status": 200,  "success": true,  "message": "If that email exists and is unverified, a new verification link has been sent.",  "data": null}