Email Validation API
TrustShield provides a high-performance REST API to detect disposable email addresses, block bots, and validate sender reputation in real-time.
Low Latency
Sub-50ms checks.
72k+ Domains
Largest open-source blocklist.
Secure
Enterprise-grade security.
Integration Recipes
Copy and paste these snippets to secure your signup flow immediately.
Use this function before submitting your form.
typescript
// src/lib/validation.ts
export async function validateEmail(email: string) {
const res = await fetch('https://trustshield.app/api/assess', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': process.env.TRUSTSHIELD_API_KEY!
},
body: JSON.stringify({ email })
});
const data = await res.json();
// If score is less than 50, it's likely disposable/fake
return data.score >= 50;
}Assess Email
POST
https://trustshield.app/api/assessbash
curl -X POST https://trustshield.app/api/assess \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_KEY" \
-d '{"email": "test@tempmail.com"}'Scoring Logic
The Trust Score (0-100)
0 - 40Disposable / Spam / Blocklist Match.
41 - 70Unknown / Risky / No MX Records.
71 - 100Safe / Trusted Provider / Corporate.