You can use any HTTP client to make requests to our API. Here are some examples:
curl -X POST https://mailmorph.com/api/validate \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "test@example.com"}'async function validateEmail(email: string) {
const response = await fetch('https://mailmorph.com/api/validate', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ email }),
});
return response.json();
}Our API implements rate limiting to ensure fair usage and system stability:
X-RateLimit-Limit: Maximum requests per minute (500)X-RateLimit-Remaining: Remaining requests in current windowX-RateLimit-Reset: Time in milliseconds until the rate limit resetsThe API returns JSON responses with the following structure:
{
"email": "test@example.com",
"is_temp": false,
"remaining_credits": 99
}The API uses conventional HTTP response codes to indicate success or failure:
200Success
400Bad Request - Invalid email format
401Unauthorized - Invalid or missing API key
402Payment Required - Insufficient credits
429Too Many Requests - Rate limit exceeded
500Internal Server Error
If you need any assistance or have questions, please don't hesitate to contact our support team.