Integrating email verification into your application is easier than you might think. This guide walks you through the process step-by-step, with code examples in multiple programming languages.
Getting Started
Before you begin, you'll need:
- A MailVeri account (free signup includes 1,000 credits)
- Your API key from the dashboard
- Basic understanding of HTTP requests
API Overview
The MailVeri API is a simple REST API that accepts GET or POST requests and returns JSON responses. The main endpoint for single email verification is:
GET https://api.mailveri.com/v1/[email protected]Authentication
All requests require authentication via the Authorization header:
Authorization: Bearer YOUR_API_KEYResponse Format
The API returns a JSON object with the verification results:
{
"email": "[email protected]",
"status": "VALID",
"is_disposable": false,
"is_role_account": false,
"is_catch_all": false,
"domain": "example.com",
"mx_records": ["mx1.example.com"]
}Best Practices
- Cache results – Don't verify the same email twice in a short period
- Handle errors gracefully – Network issues happen, have fallback logic
- Respect rate limits – Default is 10 requests/second
- Verify at signup – Prevent bad data from entering your system
- Use batch API for lists – More efficient for bulk verification
Conclusion
With just a few lines of code, you can integrate email verification into any application. The investment in clean data pays dividends in better deliverability, reduced costs, and improved user experience.
