Email validation
Post v1enrichmentvalidate email
Check whether an email address can receive mail.
POST
/
v1
/
enrichment
/
validate-email
cURL
curl --request POST \
--url https://api.qubrics.com/v1/enrichment/validate-email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com"
}
'import requests
url = "https://api.qubrics.com/v1/enrichment/validate-email"
payload = { "email": "jsmith@example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jsmith@example.com'})
};
fetch('https://api.qubrics.com/v1/enrichment/validate-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qubrics.com/v1/enrichment/validate-email"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"data": {
"email": "jsmith@example.com",
"result": "valid",
"served_by": "<string>",
"served_by_fallback": true
},
"meta": {
"request_id": "<string>"
},
"ok": true
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"amount_needed_microdollars": 1,
"balance_microdollars": 123,
"code": "insufficient_balance",
"doc_url": "<string>",
"message": "<string>",
"retryable": true,
"top_up_url": "<string>",
"owner_invite_url": "<string>"
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "rate_limit_exceeded",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}Authorizations
Headers
Body
application/json
Response
Successful response.
Was this page helpful?
⌘I
cURL
curl --request POST \
--url https://api.qubrics.com/v1/enrichment/validate-email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com"
}
'import requests
url = "https://api.qubrics.com/v1/enrichment/validate-email"
payload = { "email": "jsmith@example.com" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jsmith@example.com'})
};
fetch('https://api.qubrics.com/v1/enrichment/validate-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.qubrics.com/v1/enrichment/validate-email"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}{
"data": {
"email": "jsmith@example.com",
"result": "valid",
"served_by": "<string>",
"served_by_fallback": true
},
"meta": {
"request_id": "<string>"
},
"ok": true
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"amount_needed_microdollars": 1,
"balance_microdollars": 123,
"code": "insufficient_balance",
"doc_url": "<string>",
"message": "<string>",
"retryable": true,
"top_up_url": "<string>",
"owner_invite_url": "<string>"
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "rate_limit_exceeded",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}{
"error": {
"code": "<string>",
"doc_url": "<string>",
"message": "<string>",
"retryable": true
},
"meta": {
"request_id": "<string>"
},
"ok": false
}