How to install the API with a standard script
Simply copy&paste our standard code into your forms
1. Creating a Verification Source
- Log in to your SafetyMails account.
- In the top menu of the Dashboard, click on "Real-time API".

📌Remember that for this real-time email verification API to work, you need a monthly or annual subscription
- Click on "Create a new source"

- Choose the "Standard installation" option and follow the step-by-step instructions
- On the next screen, give a name to the origin (the place where the email verification API will be installed) that you are creating;

- Enter the domain of your form (for example, if your form is at "https://safetymails.com/form", you should only enter "safetymails.com");

Select the "On a website" option from the list of options for where you want to use your email verification API. Now, if your form is on a wordpress site or a landing page platform, choose one of the other options.
2. Configuring permissions
On the next screen that appears, you can configure the permissions of your form email verification API:
- Allowed statuses: define which email statuses you want to accept in your registration forms.
- Block provider domains: enabling this function will prevent the registration of emails with provider domains, such as Gmail.com, Yahoo.com, among others.
3. Script retrieval and insertion
- When you click "Finish", the email verification API installation script will be created and available for use.
- The details of the email verification API created are described on this page.
Example code
<script src=’https://optin.safetymails.com/main/safetyscript/28a389f6fd52************29fd837e8ee8c280/safetyoptin.js’></script>
4. Where to install the code
In your form, paste the script inside the HTML code, in the footer area. This is the ideal option, as it will ensure that the email verification API is only executed after the page has fully loaded.