Lookups
Agent Lookup
Email lookup designed for AI agents. Returns full, human-readable field names and supports selective field retrieval.
POST
/
api
/
agent
/
lookup
Agent Lookup
curl --request POST \
--url https://encrata.com/api/agent/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>"
}
'import requests
url = "https://encrata.com/api/agent/lookup"
payload = { "email": "<string>" }
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: '<string>'})
};
fetch('https://encrata.com/api/agent/lookup', 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://encrata.com/api/agent/lookup",
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' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://encrata.com/api/agent/lookup"
payload := strings.NewReader("{\n \"email\": \"<string>\"\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))
}HttpResponse<String> response = Unirest.post("https://encrata.com/api/agent/lookup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://encrata.com/api/agent/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"name": "Satya Nadella",
"email": "satya@microsoft.com",
"company": "Microsoft",
"role": "CEO",
"industry": "Technology",
"location": "Redmond, US",
"birthplace": "Hyderabad, India",
"current_location": "Redmond, Washington, US",
"validity": "valid",
"socials": {
"linkedin": "https://linkedin.com/in/satyanadella"
},
"breach": {
"count": 12,
"services": ["Adobe", "LinkedIn"]
},
"registered_services": {
"count": 3,
"services": ["Twitter", "Spotify", "GitHub"]
}
}
{
"c": 400,
"m": "bad email"
}
{
"c": 401,
"m": "bad key"
}
{
"c": 405,
"m": "POST only"
}
Authentication
Requires a Bearer token in theAuthorization header.
Authorization: Bearer YOUR_API_KEY
Request
string
required
The email address to look up. The legacy key
e is still accepted.string
Comma-separated list of fields to return. Omit to return all fields.Available fields:
name, email, company, role, industry, location, birthplace, current_location, bio, age, gender, education, phone, photo, validity, socials, breach, registered_services, news, publicationsField reference
| Key | Description |
|---|---|
name | Full name |
email | |
company | Company |
role | Job role |
industry | Industry |
location | Location (city, country) |
birthplace | Birthplace |
current_location | Current/company location |
bio | Biography |
age | Age |
gender | Gender |
education | Education (level + university + field) |
phone | Company phone |
photo | Photo URL |
validity | Email validity (valid, invalid, disposable, unknown) |
socials | Social links (linkedin, twitter, instagram, facebook, github) |
breach | Breach info (count, services, exposed_data) |
registered_services | Registered services (count, services) |
news | News mentions (title, url, date, source) |
publications | Publications (title, url, year, cited_by) |
Example request
curl -X POST "https://encrata.com/api/agent/lookup?fields=name,company,role,socials" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "satya@microsoft.com"}'
import requests
resp = requests.post(
"https://encrata.com/api/agent/lookup",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"email": "satya@microsoft.com"},
params={"fields": "name,company,role,socials"},
)
print(resp.json())
const resp = await fetch(
"https://encrata.com/api/agent/lookup?fields=name,company,role,socials",
{
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ email: "satya@microsoft.com" }),
}
);
const data = await resp.json();
Response
string
Full name (first + middle + last).
string
Email address.
string
Company name.
string
Job role / title.
string
Industry.
string
Location as “city, country”.
string
Birthplace (parsed from knowledge graph).
string
Current/company location.
string
Short biography.
string
Age.
string
Gender.
string
Education summary (level, university, field).
string
Company phone.
string
Profile photo URL.
string
Email validity:
valid, invalid, disposable, or unknown.object
object
object
array
Example response
{
"name": "Satya Nadella",
"company": "Microsoft",
"role": "CEO",
"birthplace": "Hyderabad, India",
"current_location": "Redmond, Washington, US",
"validity": "valid",
"socials": {
"linkedin": "https://linkedin.com/in/satyanadella"
},
"breach": {
"count": 12,
"services": ["Adobe", "LinkedIn"]
},
"registered_services": {
"count": 3,
"services": ["Twitter", "Spotify", "GitHub"]
}
}
{
"name": "Satya Nadella",
"email": "satya@microsoft.com",
"company": "Microsoft",
"role": "CEO",
"industry": "Technology",
"location": "Redmond, US",
"birthplace": "Hyderabad, India",
"current_location": "Redmond, Washington, US",
"validity": "valid",
"socials": {
"linkedin": "https://linkedin.com/in/satyanadella"
},
"breach": {
"count": 12,
"services": ["Adobe", "LinkedIn"]
},
"registered_services": {
"count": 3,
"services": ["Twitter", "Spotify", "GitHub"]
}
}
{
"c": 400,
"m": "bad email"
}
{
"c": 401,
"m": "bad key"
}
{
"c": 405,
"m": "POST only"
}
⌘I
Agent Lookup
curl --request POST \
--url https://encrata.com/api/agent/lookup \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>"
}
'import requests
url = "https://encrata.com/api/agent/lookup"
payload = { "email": "<string>" }
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: '<string>'})
};
fetch('https://encrata.com/api/agent/lookup', 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://encrata.com/api/agent/lookup",
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' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://encrata.com/api/agent/lookup"
payload := strings.NewReader("{\n \"email\": \"<string>\"\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))
}HttpResponse<String> response = Unirest.post("https://encrata.com/api/agent/lookup")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://encrata.com/api/agent/lookup")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"name": "Satya Nadella",
"email": "satya@microsoft.com",
"company": "Microsoft",
"role": "CEO",
"industry": "Technology",
"location": "Redmond, US",
"birthplace": "Hyderabad, India",
"current_location": "Redmond, Washington, US",
"validity": "valid",
"socials": {
"linkedin": "https://linkedin.com/in/satyanadella"
},
"breach": {
"count": 12,
"services": ["Adobe", "LinkedIn"]
},
"registered_services": {
"count": 3,
"services": ["Twitter", "Spotify", "GitHub"]
}
}
{
"c": 400,
"m": "bad email"
}
{
"c": 401,
"m": "bad key"
}
{
"c": 405,
"m": "POST only"
}