The MV API documentation
The MV API is used to programmatically validate email addresses. It can be integrated with any system that can make http API calls. There are language specific examples for python, javascript, php, Java. Other ways to validate emails are using CSV files.
Validate
This endpoint allows you to validate an email address.
Curl
An example example using curl would look like this.
curl -X 'POST' \
'https://app.mailvalidation.io/a/{team_slug}/validate/api/validate/' \
-H 'accept: application/json' \
-H 'Authorization: {apikey}' \
-H 'Content-Type: application/json' \
-d '{
"email": "test@test.com"
}'
{
'is_valid': "true"
}
Parameters
The email address is provided as a query parameter. This is the email address to validate. eg ‘[email protected]’
Api Key
This is provided as the authorization http header. You can get your api key from the mailVALIDATION.io dashboard.
Your authentication token. eg Authorization: Api-Key xxxx
where xxxx
is your api key.
Response
The email address is valid
{
"is_valid": "true"
}
Validation Status Types
Status | Description |
---|---|
True | The email address is valid. |
False | The email address is invalid. It is either malformed, there is no mail server at the domain or the address does not exist on the server. |