Verify an email
Verify a single email. If a verification request takes longer than the timeout, you may retry this request for up to 5 minutes. After 5 minutes, further requests will count against your usage. The verification result will be returned when it is available.
When a test key is used, a random sample response will be returned.
Parameters
| Parameter | Required | Description |
|---|---|---|
email |
Yes | The email you want verified. |
smtp |
No |
true or false. The SMTP step takes up the majority of the API’s response time. If you would like to speed up your response times, you can disable this step. However, this will significantly decrease verification accuracy. Default: true
|
accept_all |
No |
true or false. Whether or not an accept-all check is performed. Heavily impacts API’s response time. Default: false
|
api_key |
No | Your API key. |
access_token |
No | Your access token. |
timeout |
No | Optional timeout to wait for response (in seconds). Min: 2, Max: 10. Default: 5 |
captcha_response |
No | The response string from your captcha provider. Only applicable when using a public API key with a captcha. |
Response
The list of all attributes returned for each email verification. For additional details about each state and reason, click here.
| Attribute | Type | Description |
|---|---|---|
accept_all |
Boolean | Whether the mail server used to verify indicates that all addresses are deliverable regardless of whether or not the email is valid. |
did_you_mean |
String | A suggested correction for a common misspelling. |
disposable |
Boolean | Whether this email is hosted on a disposable or temporary email service. |
domain |
String | The domain of the email. (e.g. The domain for john.smith@gmail.com would be gmail.com) |
duration |
Float | The length of time (in seconds) spent verifying this email. |
email |
String | The email that was verified. |
first_name |
String | The possible first name of the user. |
free |
Boolean | Whether the email is hosted by a free email provider. |
full_name |
String | The possible full name of the user. |
gender |
String | The possible gender of the user. |
last_name |
String | The possible last name of the user. |
mailbox_full |
Boolean | The mailbox is currently full and emails may not be delivered. |
mx_record |
String | The address of the mail server used to verify the email. |
no_reply |
Boolean | An address that indicates it should not be replied to. |
reason |
String | The reason for the associated state. |
role |
Boolean | Whether the email is considered a role address. (e.g. support, info, etc.) |
score |
Integer | The score of the verified email. |
smtp_provider |
String | The SMTP provider of the verified email’s domain. |
state |
String | The state of the verified email. (e.g. deliverable, undeliverable, risky, unknown) |
tag |
String | The tag part of the verified email. (e.g. The tag for john.smith+example@gmail.com would be example) |
user |
String | The user part of the verified email. (e.g. The user for john.smith@gmail.com would be john.smith) |