Validate emails
curl --request POST \
--url https://api.generect.com/api/v1/email/validate/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"emails": [
"jordan.ellis@microsoft.com",
"morgan.lee@salesforce.com"
]
}
'import requests
url = "https://api.generect.com/api/v1/email/validate/"
payload = { "emails": ["jordan.ellis@microsoft.com", "morgan.lee@salesforce.com"] }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({emails: ['jordan.ellis@microsoft.com', 'morgan.lee@salesforce.com']})
};
fetch('https://api.generect.com/api/v1/email/validate/', 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.generect.com/api/v1/email/validate/",
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([
'emails' => [
'jordan.ellis@microsoft.com',
'morgan.lee@salesforce.com'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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.generect.com/api/v1/email/validate/"
payload := strings.NewReader("{\n \"emails\": [\n \"jordan.ellis@microsoft.com\",\n \"morgan.lee@salesforce.com\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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.generect.com/api/v1/email/validate/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"emails\": [\n \"jordan.ellis@microsoft.com\",\n \"morgan.lee@salesforce.com\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.generect.com/api/v1/email/validate/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"emails\": [\n \"jordan.ellis@microsoft.com\",\n \"morgan.lee@salesforce.com\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"email": "jordan.ellis@microsoft.com",
"result": "valid",
"exist": "yes",
"catch_all": false,
"error": null
},
{
"email": "morgan.lee@salesforce.com",
"result": "valid",
"exist": "yes",
"catch_all": false,
"error": null
}
],
"meta": {
"amount_charged": 0.01
}
}Email
Validate emails
Validate email deliverability and risk. Billed per email validated.
POST
/
api
/
v1
/
email
/
validate
/
Validate emails
curl --request POST \
--url https://api.generect.com/api/v1/email/validate/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"emails": [
"jordan.ellis@microsoft.com",
"morgan.lee@salesforce.com"
]
}
'import requests
url = "https://api.generect.com/api/v1/email/validate/"
payload = { "emails": ["jordan.ellis@microsoft.com", "morgan.lee@salesforce.com"] }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({emails: ['jordan.ellis@microsoft.com', 'morgan.lee@salesforce.com']})
};
fetch('https://api.generect.com/api/v1/email/validate/', 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.generect.com/api/v1/email/validate/",
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([
'emails' => [
'jordan.ellis@microsoft.com',
'morgan.lee@salesforce.com'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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.generect.com/api/v1/email/validate/"
payload := strings.NewReader("{\n \"emails\": [\n \"jordan.ellis@microsoft.com\",\n \"morgan.lee@salesforce.com\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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.generect.com/api/v1/email/validate/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"emails\": [\n \"jordan.ellis@microsoft.com\",\n \"morgan.lee@salesforce.com\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.generect.com/api/v1/email/validate/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"emails\": [\n \"jordan.ellis@microsoft.com\",\n \"morgan.lee@salesforce.com\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"email": "jordan.ellis@microsoft.com",
"result": "valid",
"exist": "yes",
"catch_all": false,
"error": null
},
{
"email": "morgan.lee@salesforce.com",
"result": "valid",
"exist": "yes",
"catch_all": false,
"error": null
}
],
"meta": {
"amount_charged": 0.01
}
}Use Case:
Clean and verify email lists to improve campaign success rates and lower bounce rates.Pricing
This is a billable endpoint — you are charged for each email validated.Your price decreases automatically as your lifetime spend grows. Check your current tier and pricing →
Authorizations
Use the required Token prefix. Example: Authorization: Token xxxxxxxxx
Body
application/json
Was this page helpful?
⌘I