In this section, we are going to explain how to properly make validations using mails, the main logic that the service do is the following:

Request Email Validation

First thing that you need to do is to request an OTP for email, this can be done using the service for **Email validation request,** this is a POST method in which you send some configuration information, this to allow the Email to go correctly to someone in your whitelist, this is an example of the information that you must provide in the Body:

{
    "project": "6266193db77ccc8111730c90",
    "projectFlow": "658ed28b0990f300134d7b78",
    "email": "[email protected]",
    "type": "login",
    "validationMethod": "verificationCode",
    "language": "en"
}

Now we will explain each of these params and how to send them properly in the request of the API:

Success Criteria

For the service to work correctly, you need to have the following information correctly: