پرش به مطلب اصلی

Resend Verification Email API

POST /resendVerificationEmail

Description

This API endpoint allows users to request a resend of their account verification email. If the user has not yet verified their email address, this endpoint will send a new verification email to the specified address.

Request Body

The request utilizes GraphQL to perform the resendVerificationEmail mutation.

Mutation:

mutation resendVerificationEmail ($email: String!) {
resendVerificationEmail (email: $email)
}

Variables:

{
"email": "<User_Email_Address>"
}
  • email (String): The email address of the user who needs the verification email resent.

Response:

  • Success (200 OK):

    • A new verification email will be sent to the specified email address. No additional data is returned in the response.
  • Error (4XX/5XX):

    • Appropriate error messages and status codes will be returned in cases of invalid email, unregistered email address, or server errors.

Note:

Ensure that the email address provided is associated with an unverified account. The resend verification request will not work if the email is already verified or does not exist in the system.