POST /address/v1/validateEmail
Validates an email by specifying the email address and validators to be used in the request body of the HTTP POST. You can use more than one validator in the same call.
Name | Type | Description | |
---|---|---|---|
string | Required | Email address to be validated | |
validators | array | Required< | List of validators to check email against. Validators include: SyntaxValidator, MXValidator, and ListDetectiveValidator |
Status | Name | Type | Description | |||
---|---|---|---|---|---|---|
200 | Successful validation response | |||||
string | Email address that was validated | |||||
valid | boolean | Whether it was valid or not | ||||
200 | Successful validation response | |||||
string | Email address that was validated | |||||
valid | boolean | Whether it was valid or not | ||||
failedValidation | string | The validator that failed: SyntaxValidator , MXValidator , or ListDetectiveValidator |
Example Request
Example Response
If the email address is valid, the API returnes this response.
If the email address is not valid, the API returns this response, indicating which validator failed.