True Inbox API Docs
  • Introduction
    • Authentication
    • Rate Limit
    • Credit Usage
  • REFERENCE
    • Single Email Verification
    • Bulk Email Verification
Powered by GitBook
On this page
  1. REFERENCE

Single Email Verification

This API allows you to validate an email address, determining its validity, invalidity, or potential risk, while also providing additional relevant information.

cURL 'https://api.trueinbox.io/v1/api/verify-single-email?email=<username@domain.com>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
const axios = require('axios');

axios.get('https://api.trueinbox.io/v1/api/verify-single-email?email=<username@domain.com>', {
    headers: {accept: 'application/json', Authorization: 'Bearer <token>'}
})
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.log(error);
  });
import requests
payload = {'email':'<username@domain.com>'}
headers = {'accept': 'application/json', 'authorization': 'Bearer <token>'}
resp = requests.get('https://api.trueinbox.io/v1/api/verify-single-email', params=payload, headers=headers)
print (resp.text)
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.trueinbox.io/v1/api/verify-single-email?email=<username@domain.com>")
  .get()
  .addHeader("accept", "application/json")
  .addHeader("authorization", "Bearer <token>")
  .build();

Response response = client.newCall(request).execute();
require 'uri'
require 'net/http'

url = URI("https://api.trueinbox.io/v1/api/verify-single-email?email=<username@domain.com>")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.trueinbox.io/v1/api/verify-single-email?email=<username@domain.com>",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: application/json",
    "authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

Example response

{
    "email": "username@domain",
    "status": "success",
    "result": "valid",
    "confidenceScore": 99,
    "smtpProvider": "Google",
    "mailDisposable": false,
    "mailAcceptAll": false,
    "free": false,
    "total_credits": 25000,
    "credits_used": 513,
    "credits_remaining": 24487
}

Last updated 1 year ago