Complete guide to using the Lead Verification API
All API requests require authentication using an API key in the request header:
X-API-Key: your-api-key-here
https://lead-validator-api-production.up.railway.app/verify/
Verify a single email address and/or phone number.
Content-Type: application/json
X-API-Key: your-api-key-here
{
"email": "test@example.com", // Optional
"phone_number": "+1234567890" // Optional
}
email
or phone_number
is required.
{
"email": "test@example.com",
"phone_number": "+1234567890",
"data": {
"email_data": {
"valid": true,
"score": 85,
"disposable": false
},
"phone_number_data": {
"valid": true,
"line_type": "mobile",
"validation_errors": []
}
}
}
https://lead-validator-api-production.up.railway.app/bulk-verify/
Upload a CSV file to verify multiple leads at once.
Content-Type: multipart/form-data
X-API-Key: your-api-key-here
file: your-csv-file.csv
email,phone_number
test1@example.com,+1234567890
test2@example.com,+0987654321
user@domain.com,+1122334455
[
{
"email": "test1@example.com",
"phone_number": "+1234567890",
"data": {
"email_data": { "valid": true, "score": 85, "disposable": false },
"phone_number_data": { "valid": true, "line_type": "mobile", "validation_errors": [] }
}
},
// ... more results
]
Status Code | Description | Example Response |
---|---|---|
401 | Invalid or missing API key | {"detail": "Invalid API Key"} |
400 | Bad request (validation error) | {"error": "Either email or phone number are required"} |
429 | Rate limit exceeded | {"detail": "Request was throttled"} |
500 | Server error | {"error": "Internal server error"} |
import requests
# Single verification
url = "https://lead-validator-api-production.up.railway.app/verify/"
headers = {
"Content-Type": "application/json",
"X-API-Key": "your-api-key-here"
}
data = {
"email": "test@example.com",
"phone_number": "+1234567890"
}
response = requests.post(url, json=data, headers=headers)
result = response.json()
print(result)
// Single verification
const response = await fetch('https://lead-validator-api-production.up.railway.app/verify/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'your-api-key-here'
},
body: JSON.stringify({
email: 'test@example.com',
phone_number: '+1234567890'
})
});
const result = await response.json();
console.log(result);
# Single verification
curl -X POST "https://lead-validator-api-production.up.railway.app/verify/" \
-H "Content-Type: application/json" \
-H "X-API-Key: your-api-key-here" \
-d '{
"email": "test@example.com",
"phone_number": "+1234567890"
}'
# CSV upload
curl -X POST "https://lead-validator-api-production.up.railway.app/bulk-verify/" \
-H "X-API-Key: your-api-key-here" \
-F "file=@leads.csv"
This is a portfolio project created by Abraham Deeb.
Need help? This API is designed for demonstration purposes. For questions about implementation or to discuss production usage, please contact the developer.