|
| 1 | +# MailboxValidator Rust API |
| 2 | + |
| 3 | +```{py:function} validate_email(email, api_key) |
| 4 | +Validate whether an email address is a valid email or not. |
| 5 | +
|
| 6 | +:param str email: (Required) The email address. |
| 7 | +
|
| 8 | +:return: Returns the validation result in JSON object. |
| 9 | +:rtype: Object |
| 10 | +
|
| 11 | +**Successful Response Parameters** |
| 12 | +| Field Name | Description | |
| 13 | +|-----------|------------| |
| 14 | +| email_address | The input email address. | |
| 15 | +| base_email_address | The input email address after sanitizing the username of the dots (only Gmail) and [subaddressing](https://en.wikipedia.org/wiki/Email_address#Sub-addressing). | |
| 16 | +| domain | The domain of the email address. | |
| 17 | +| is_free | Whether the email address is from a free email provider like Gmail or Hotmail. Return values: true, false, null (null means not applicable) | |
| 18 | +| is_syntax | Whether the email address is syntactically correct. Return values: true, false | |
| 19 | +| is_domain | Whether the email address has a valid MX record in its DNS entries. Return values: true, false, null (null means not applicable) | |
| 20 | +| is_smtp | Whether the mail servers specified in the MX records are responding to connections. Return values: true, false, null (null means not applicable) | |
| 21 | +| is_verified | Whether the mail server confirms that the email address actually exist. Return values: true, false, null (null means not applicable) | |
| 22 | +| is_server_down | Whether the mail server is currently down or unresponsive. Return values: true, false, null (null means not applicable) | |
| 23 | +| is_greylisted | Whether the mail server employs greylisting where an email has to be sent a second time at a later time. Return values: true, false, null (null means not applicable) | |
| 24 | +| is_disposable | Whether the email address is a temporary one from a disposable email provider. Return values: true, false, null (null means not applicable) | |
| 25 | +| is_suppressed | Whether the email address is in our blacklist. Return values: true, false, null (null means not applicable) | |
| 26 | +| is_role | Whether the email address is a role-based email address like admin@example.net or webmaster@example.net. Return values: true, false, null (null means not applicable) | |
| 27 | +| is_high_risk | Whether the email address contains high risk keywords. Return values: true, false, null (null means not applicable) | |
| 28 | +| is_catchall | Whether the email address is a catch-all address. Return values: true, false, null (null means not applicable) | |
| 29 | +| is_dmarc_enforced | Whether the email domain is enforcing DMARC. Return values: true, false | |
| 30 | +| is_strict_spf | Whether the email domain is using strict SPF. Return values: true, false | |
| 31 | +| website_exist | Whether the email domain is a reachable website. Return values: true, false | |
| 32 | +| mailboxvalidator_score | Email address reputation score. Score > 0.70 means good; score > 0.40 means fair; score <= 0.40 means poor. | |
| 33 | +| time_taken | The time taken to get the results in seconds. | |
| 34 | +| status | Whether our system think the email address is valid based on all the previous fields. Return values: True, False | |
| 35 | +| credits_available | The number of credits left to perform validations. | |
| 36 | +
|
| 37 | +**Error Response Parameters** |
| 38 | +| Field Name | Description | |
| 39 | +|-----------|------------| |
| 40 | +| error.error_code | The error code if there is any error. See error table in the [Error Codes](reference.md) section. | |
| 41 | +| error.error_message | The error message if there is any error. See error table in the [Error Codes](reference.md) section. | |
| 42 | +
|
| 43 | +``` |
| 44 | + |
| 45 | +```{py:function} is_disposable_email(email, api_key) |
| 46 | +Validate whether an email address is a disposable email or not. |
| 47 | +
|
| 48 | +:param str email: (Required) The email address. |
| 49 | +
|
| 50 | +:return: Returns the validation result in JSON object. |
| 51 | +:rtype: Object |
| 52 | +
|
| 53 | +**Successful Response Parameters** |
| 54 | +| Field Name | Description | |
| 55 | +|-----------|------------| |
| 56 | +| email_address | The input email address. | |
| 57 | +| is_disposable | Whether the email address is a temporary one from a disposable email provider. Return values: True, False | |
| 58 | +| credits_available | The number of credits left to perform validations. | |
| 59 | +
|
| 60 | +
|
| 61 | +**Error Response Parameters** |
| 62 | +| Field Name | Description | |
| 63 | +|-----------|------------| |
| 64 | +| error.error_code | The error code if there is any error. See error table in the [Error Codes](reference.md) section. | |
| 65 | +| error.error_message | The error message if there is any error. See error table in the [Error Codes](reference.md) section. | |
| 66 | +
|
| 67 | +``` |
| 68 | + |
| 69 | +```{py:function} is_free_email(email, api_key) |
| 70 | +Validate whether an email address is a free email or not. |
| 71 | +
|
| 72 | +:param str email: (Required) The email address. |
| 73 | +
|
| 74 | +:return: Returns the validation result in JSON object. |
| 75 | +:rtype: Object |
| 76 | +
|
| 77 | +**Successful Response Parameters** |
| 78 | +| Field Name | Description | |
| 79 | +|-----------|------------| |
| 80 | +| email_address | The input email address. | |
| 81 | +| is_free | Whether the email address is from a free email provider like Gmail or Hotmail. Return values: True, False | |
| 82 | +| credits_available | The number of credits left to perform validations. | |
| 83 | +
|
| 84 | +
|
| 85 | +**Error Response Parameters** |
| 86 | +| Field Name | Description | |
| 87 | +|-----------|------------| |
| 88 | +| error.error_code | The error code if there is any error. See error table in the [Error Codes](reference.md) section. | |
| 89 | +| error.error_message | The error message if there is any error. See error table in the [Error Codes](reference.md) section. | |
| 90 | +
|
| 91 | +``` |
| 92 | + |
0 commit comments