Disposable Email API

Integrate temporary email functionality into your applications with our powerful and reliable API. Perfect for testing, development, and automation.

Why Choose Our Disposable Email API?

Our API provides a robust solution for managing temporary email addresses programmatically. Perfect for developers, QA teams, and automation workflows.

High Performance

Fast and reliable API with 99.9% uptime.

Easy Integration

Simple REST API with comprehensive documentation.

Secure & Reliable

Enterprise-grade security and data protection.

API Documentation

Create Email


POST /api/v1/emails
Authorization: Bearer YOUR_API_KEY

Response:
{
    "email": "random@omypost.com",
    "expires_at": "2025-03-20T12:00:00Z"
}
                

Check Messages


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"
        }
    ]
}
                

API Features

Real-time Updates

Get instant notifications for new messages.

Auto-expiry

Automatic cleanup of expired emails.

Message Filtering

Filter and search through messages.

Attachment Support

Handle email attachments easily.

Usage Analytics

Monitor API usage and performance.

Global Availability

Access from anywhere in the world.

Code Examples

Python Example


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()
                

Node.js Example


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;
}
                

Frequently Asked Questions

What are the API rate limits?

Free tier: 100 requests/hour. Paid plans offer higher limits.

How long do temporary emails last?

Default expiration is 24 hours, customizable via API.

Is the API secure?

Yes, all API calls are encrypted using TLS 1.2+.

Do you offer webhook support?

Yes, you can configure webhooks for real-time notifications.

Start Using Our API Today

Join thousands of developers using OmyPost's disposable email API.

Get Started