Endpoint
Parameters
Request Example
Response Fields
HTTP status code indicating the result of the request
200: Success400: Invalid domain429: Rate limit exceeded
Indicates whether the domain has valid MX (Mail Exchange) records configured for email delivery
Response Examples
Success Response (Valid Domain)
Disposable Domain Detected
Public Email Provider
public_domain: true indicates a well-known email provider. These are generally legitimate but don’t identify the organization.Error Responses
Invalid Domain (400)
Rate Limit Exceeded (429)
Learn About Rate Limits
View rate limit details and upgrade options
Common Use Cases
Block domains without MX records
Block domains without MX records
Detect newly registered domains
Detect newly registered domains
Identify corporate vs personal emails
Identify corporate vs personal emails
Bulk domain validation
Bulk domain validation
Domain vs Email Endpoint
When to use Domain Validation vs Email Validation:
Use Domain Endpoint
- Validating domain-level blocklists
- Checking company email policies
- Bulk domain reputation checks
- Pre-filtering allowed domains
Use Email Endpoint
- Validating specific user emails
- Detecting typos in email addresses
- Checking role-based accounts
- Full email-level validation
Best Practices
Combine with email endpoint for complete validation
Combine with email endpoint for complete validation
Use the domain endpoint for initial filtering, then validate specific emails with the email endpoint for comprehensive checks.
Cache domain results
Cache domain results
Domain reputation doesn’t change frequently. Cache results for 24-48 hours to reduce API calls.
Monitor domain age
Monitor domain age
Newly registered domains (< 30 days old) are often used for spam or fraud. Consider additional verification for young domains.
Handle null values
Handle null values
Some fields like
domain_age_in_days may return null if data is unavailable. Always handle null values gracefully in your code.