curl --request GET \
--url https://exact.ws/emails/domains/{domain_name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://exact.ws/emails/domains/{domain_name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://exact.ws/emails/domains/{domain_name}', 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://exact.ws/emails/domains/{domain_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://exact.ws/emails/domains/{domain_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://exact.ws/emails/domains/{domain_name}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://exact.ws/emails/domains/{domain_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"name": "<string>",
"is_smtp_enabled": true,
"is_catch_all": true,
"is_free": true,
"is_disposable": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"mx_record": "<string>"
}{
"status_code": 400,
"detail": "Bad Request",
"extra": {}
}Validar Domínio
Esta rota permite validar um domínio
curl --request GET \
--url https://exact.ws/emails/domains/{domain_name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://exact.ws/emails/domains/{domain_name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://exact.ws/emails/domains/{domain_name}', 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://exact.ws/emails/domains/{domain_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://exact.ws/emails/domains/{domain_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://exact.ws/emails/domains/{domain_name}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://exact.ws/emails/domains/{domain_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"name": "<string>",
"is_smtp_enabled": true,
"is_catch_all": true,
"is_free": true,
"is_disposable": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"mx_record": "<string>"
}{
"status_code": 400,
"detail": "Bad Request",
"extra": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
O domínio que deseja validar
Response
Request fulfilled, document follows
O nome do domínio do provedor de e-mail
Se o e-mail possui registros DNS adequados para entregar uma mensagem
Se o servidor SMTP aceita todos os e-mails, independente se o endereço existir ou não
Se o e-mail é hospedado por um provedor gratuito
Se o domínio parece ser de um serviço de e-mail descartável
A data e hora de quando este registro foi criado, na notação date-time conforme definido pela RFC 3339 (ex: 2017-07-21T17:32:28Z)
A data e hora de quando este registro foi modificado, na notação date-time conforme definido pela RFC 3339 (ex: 2017-07-21T17:32:28Z)
O endereço do servidor de e-mail utilizado para validar o e-mail