Professional temporary email API for developers. REST API, webhooks, SDKs for all languages. Perfect for testing, development, QA, and automated workflows. Free API with premium features.
Start using our API with just a few lines of code
const response = await fetch('https://api.easytrashmail.eu/v1/emails', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
duration: 3600 // 1 hour
})
});
const { email } = await response.json();
console.log(email); // your@temp-email.comREST API with complete OpenAPI 3.0 documentation
Webhooks for real-time email notifications
SDKs for 8+ programming languages
Rate limiting with burst support
OAuth2 & API key authentication
IP whitelisting & request signatures
Sandbox environment for testing
CI/CD integration (GitHub Actions, GitLab CI)
GraphQL alternative available
WebSocket support for live updates
Bulk operations for mass testing
Email parsing & content extraction
Attachment download via API
Custom domain support (Premium+)
Analytics & monitoring dashboard
Request/response logging
Error handling & retry mechanisms
Multi-region deployment
Accelerate development with ready-to-use API
Reduce testing time through automated email handling
Improve code quality with isolated test environments
Scale effortlessly from prototype to production
Save costs through efficient email testing workflows
Increase security with temporary test accounts
Simplify QA processes with programmable emails
Seamlessly integrate into existing CI/CD pipelines
Build robust applications with reliable email infrastructure
Focus on core features instead of email management
import requests
response = requests.post(
'https://api.easytrashmail.eu/v1/emails',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={'duration': 3600}
)
email = response.json()['email']
print(f"Created: {email}")const axios = require('axios');
const response = await axios.post(
'https://api.easytrashmail.eu/v1/emails',
{ duration: 3600 },
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
console.log(response.data.email);The EasyTrashMail API is REST-based and easy to integrate. Create an API key in your dashboard, then you can create temporary emails via POST requests, retrieve emails via GET, and configure webhooks for real-time notifications. SDKs for JavaScript, Python, PHP, Ruby, and more are available.
We offer official SDKs for JavaScript/TypeScript, Python, PHP, Ruby, Go, Java, C#, and Node.js. The REST API can be used with any language that supports HTTP requests. Complete documentation with code examples is available.
Webhooks enable real-time notifications when new emails arrive at your temporary address. Configure a webhook URL in your dashboard, and we'll send POST requests with email data to your endpoint. Supports retry logic, signature validation, and custom headers.
Free plan: 100 requests/hour. Premium: 1,000 requests/hour. Pro plan: 10,000 requests/hour with burst support. Enterprise plans with custom limits available. All limits are per API key and can be optimized through caching.
Yes, the API is perfect for E2E tests, integration tests, and QA automation. Create temporary emails for test accounts, automatically receive verification codes, and validate email content in your test suites. Many CI/CD integrations available.
The API uses HTTPS with TLS 1.3, API keys with scopes, OAuth2 support, IP whitelisting, request signatures, and rate limiting. All data is encrypted in transit and automatically deleted after expiration. GDPR compliant and SOC 2 certified.
Yes, all developers get access to a full sandbox environment with test API keys. The sandbox behaves identically to the production API but without real email delivery. Perfect for local development and CI/CD pipelines.
Free plan includes 100 requests/hour, basic webhooks, and standard support. Premium adds 1,000 requests/hour, advanced webhooks with retry logic, custom domains, priority support, and analytics. Pro plan includes 10,000 requests/hour, dedicated support, and SLA guarantees.