1
Initiate Email Verification
If a user has not initiated email verification or if the verification code has expired, the logged-in user can initiate the email verification process using the following endpoint:This API call will return a 200 OK status if a new verification code is generated and sent to the user’s email address.
2
User Clicks the link in the email
Once the user receives the email containing the verification code, they can click the link and it will redirect them to the client app url.In above request, the link will be
http://iqraa.ai/verify-email?code=XYZ123&userId=2893003&sessionToken=opaque-token-string3
Verify Email with code
Once the user is redirected to the link, they can use the information in query parameters to verify their email address by sending a request to the following endpoint:If the verification is successful, the user’s
isEmailVerified flag will be set to true