EvilMail
Back to Blog
Developers2026-02-0110 min read

Integrating EvilMail API Into Your Application

EvilMail provides a comprehensive REST API that lets you integrate disposable email functionality directly into your applications.

Getting Started First, register an account and get your API key from the dashboard. All API requests require the X-API-Key header.

Creating a Temp Email Send a POST request to /api/temp-email with your preferred domain and TTL: ``` curl -X POST https://evilmail.pro/api/temp-email \ -H 'Content-Type: application/json' \ -H 'X-API-Key: your_key' \ -d {"domain": "evilmail.pro", "ttlMinutes": 60} ```

Reading the Inbox Poll the inbox endpoint to check for new messages: ``` curl https://evilmail.pro/api/inbox \ -H 'X-API-Key: your_key' ```

Managing Domains Add custom domains, verify DNS configuration, and create email accounts β€” all programmatically.

Use Cases - Automated testing pipelines - User verification flows - Disposable email services - Privacy-focused applications