Email Validation
curl --request POST \
--url https://api.enrichley.io/api/v1/validate-single-email \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"email": "jane.doe@example.com"
}
'import requests
url = "https://api.enrichley.io/api/v1/validate-single-email"
payload = { "email": "jane.doe@example.com" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jane.doe@example.com'})
};
fetch('https://api.enrichley.io/api/v1/validate-single-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enrichley.io/api/v1/validate-single-email",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'jane.doe@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enrichley.io/api/v1/validate-single-email"
payload := strings.NewReader("{\n \"email\": \"jane.doe@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.enrichley.io/api/v1/validate-single-email")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jane.doe@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enrichley.io/api/v1/validate-single-email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"jane.doe@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"email": "jane.doe@example.com",
"valid": true,
"result": "catch_all_validated",
"mx_domain": "example.com",
"email_type": "business",
"mx_provider": "example",
"credits_consumed": true,
"mx_secure_email_gateway": true
}Email Validation
Email Validation
Validate a single email address with the Enrichley API.
POST
/
validate-single-email
Email Validation
curl --request POST \
--url https://api.enrichley.io/api/v1/validate-single-email \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"email": "jane.doe@example.com"
}
'import requests
url = "https://api.enrichley.io/api/v1/validate-single-email"
payload = { "email": "jane.doe@example.com" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jane.doe@example.com'})
};
fetch('https://api.enrichley.io/api/v1/validate-single-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enrichley.io/api/v1/validate-single-email",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'jane.doe@example.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.enrichley.io/api/v1/validate-single-email"
payload := strings.NewReader("{\n \"email\": \"jane.doe@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.enrichley.io/api/v1/validate-single-email")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jane.doe@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enrichley.io/api/v1/validate-single-email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"jane.doe@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"email": "jane.doe@example.com",
"valid": true,
"result": "catch_all_validated",
"mx_domain": "example.com",
"email_type": "business",
"mx_provider": "example",
"credits_consumed": true,
"mx_secure_email_gateway": true
}Email Validation
This endpoint validates a single email address using the Enrichley API and returns validation and enrichment data.- Method:
POST - Path:
/validate-single-email - Auth:
X-Api-Keyheader
{
"email": "jane.doe@example.com"
}
{
"email": "jane.doe@example.com",
"valid": true,
"result": "catch_all_validated",
"mx_domain": "example.com",
"email_type": "business",
"mx_provider": "example",
"credits_consumed": true,
"mx_secure_email_gateway": true
}
x-ratelimit-limitx-ratelimit-remainingx-ratelimit-resetx-credits-remaining
X-Api-Key.Authorizations
Body
application/json
The email address to validate.
Response
Email validation and enrichment result.
The email address that was validated.
Whether the email is considered deliverable.
High-level validation result.
Possible values:
ok— the email is valid ✅catch_all_validated— the email is a catch-all but was validated ✅catch_all— the email is a catch-all ❌invalid— the email is invalid and should not be used ❌unknown— the validation status could not be retrieved ❌
Available options:
ok, catch_all_validated, catch_all, invalid, unknown MX domain used by your recipient's email.
Email type classification (for example, business or personal).
MX provider used by your recpipient's email.
Whether this request consumed a credit.
Whether your recipient's email is behind a secure email gateway.

