This API allows you to generate and verify email verification codes for a specified email address.
https://verify-email.onrender.com/
Get /generateCode
Get /VerifyCode
This endpoint generates a verification code and sends it to the specified email address.
URL: '/generateCode'
Method: GET
Query Parameters:
email: the email address to which the verification code should be sent.
Success:
{
"status": true,
"message": "Verification code has been sent to user@example.com"
}
Error:
{
"status": false,
"message": "Error sending verification code"
}
This endpoint verifies the entered verification code for the specified email address.
URL: '/verifyCode'
Method: GET
Query Parameters:
email: the email address for which the verification code should be verified.
code: This endpoint verifies the entered verification code for the specified email address.
Success:
{
"status": true,
"message": "Verification successful",
"codeExpired": true,
"attemptsLeft": 0
}
Error:
{
"status": true,
"message": "Verification successful",
"codeExpired": false,
"attemptsLeft": 2
}