Integrate temporary email functionality into your applications with our powerful and reliable API. Perfect for testing, development, and automation.
Our API provides a robust solution for managing temporary email addresses programmatically. Perfect for developers, QA teams, and automation workflows.
Fast and reliable API with 99.9% uptime.
Simple REST API with comprehensive documentation.
Enterprise-grade security and data protection.
POST /api/v1/emails
Authorization: Bearer YOUR_API_KEY
Response:
{
"email": "random@omypost.com",
"expires_at": "2025-03-20T12:00:00Z"
}
GET /api/v1/emails/{email}/messages
Authorization: Bearer YOUR_API_KEY
Response:
{
"messages": [
{
"id": "msg_123",
"from": "sender@example.com",
"subject": "Test Email",
"received_at": "2025-03-20T10:00:00Z"
}
]
}
Get instant notifications for new messages.
Automatic cleanup of expired emails.
Filter and search through messages.
Handle email attachments easily.
Monitor API usage and performance.
Access from anywhere in the world.
import requests
API_KEY = 'your_api_key'
BASE_URL = 'https://api.omypost.com/v1'
# Create temporary email
response = requests.post(
f'{BASE_URL}/emails',
headers={'Authorization': f'Bearer {API_KEY}'}
)
email = response.json()['email']
# Check messages
messages = requests.get(
f'{BASE_URL}/emails/{email}/messages',
headers={'Authorization': f'Bearer {API_KEY}'}
).json()
const axios = require('axios');
const API_KEY = 'your_api_key';
const BASE_URL = 'https://api.omypost.com/v1';
// Create temporary email
async function createEmail() {
const response = await axios.post(
`${BASE_URL}/emails`,
{},
{ headers: { Authorization: `Bearer ${API_KEY}` } }
);
return response.data.email;
}
// Check messages
async function getMessages(email) {
const response = await axios.get(
`${BASE_URL}/emails/${email}/messages`,
{ headers: { Authorization: `Bearer ${API_KEY}` } }
);
return response.data.messages;
}
Free tier: 100 requests/hour. Paid plans offer higher limits.
Default expiration is 24 hours, customizable via API.
Yes, all API calls are encrypted using TLS 1.2+.
Yes, you can configure webhooks for real-time notifications.
Join thousands of developers using OmyPost's disposable email API.
Get Started