Overview

Email verification is an essential step to ensure the validity of the user’s email address. This document outlines the steps to check the email verification status, request a verification email, and submit the verification token received via the system event.

Checking verification status

To check a user’s email verification status, use the /auth/user/email/verify endpoint.

Example Request for Verification Status

  curl --location --request GET 'https://my-project.fastgenapp.com/auth/user/email/verify'

Requesting verification email

To request a verification email, use the /auth/user/email/verify/token endpoint.

Example Request for Verification Email

  curl --location --request POST 'https://my-project.fastgenapp.com/auth/user/email/verify/token'

Submitting Verification Token

To submit the verification token received in the email, use the /auth/user/email/verify endpoint.

Example Request for Submitting Verification Token

  curl --location --request POST 'https://my-project.fastgenapp.com/auth/user/email/verify' \
    --header 'Content-Type: application/json' \
    --data '{
        "method": "token",
        "token": "123456"
    }'