EvilMail APIリファレンス
使い捨てメール、カスタムドメイン、受信トレイの読み取り、DNS管理、スマート認証コード抽出をアプリケーションに統合。
概要
EvilMail APIは、プラットフォームのすべての機能へのプログラマティックアクセスを提供します。使い捨てメールの作成、カスタムドメインの管理、受信トレイの読み取り、認証コードの抽出、DNSレコードの制御を、シンプルなRESTfulインターフェースで実行できます。
一時メールAPI
使い捨て受信トレイの作成、メッセージの読み取り、自動有効期限
ドメイン&メールAPI
カスタムドメイン、メールアカウント、DNS管理
Regex抽出
8以上のサービスから認証コードを自動抽出
レスポンス形式
すべてのレスポンスは一貫したJSON構造に従います:
{
"status": "success" | "error",
"message": "Human-readable message (optional)",
"messageKey": "i18n key for localized errors (optional)",
"data": { ... }
}エラーレスポンスには、ユーザーのアカウント言語に合わせたローカライズされたエラーメッセージ用のmessageKeyが含まれます。
認証
EvilMailはエンドポイントの種類に応じて2つの認証方法を使用します。すべてのAPIリクエストはHTTPS経由で行う必要があります。
APIキー
一時メール作成と認証コード抽出用。アクティブな有料サブスクリプションが必要です。
X-API-Key: your_64char_hex_keyセッションCookie
ドメイン、メールアカウント、DNS管理エンドポイント用。ログイン後に設定されます。
Cookie: evilmail_session=...一時メールAPIには有料プランが必要です
一時メールAPIとRegex抽出エンドポイントには、Bronze、Gold、またはPremiumのアクティブなサブスクリプションが必要です。無料アカウントはWebインターフェースのみ利用可能です。
一時メール
有料プラン必須設定可能なTTLで使い捨てメールアドレスを作成。 利用可能なドメイン: evilmail.pro, evilmail.cloud.
Create a temporary email address
domainstring任意Domain to use (default: evilmail.pro)ttlMinutesnumber任意Lifetime: 10, 30, 60, 360, 1440 (default: 60){
"status": "success",
"data": {
"email": "[email protected]",
"domain": "evilmail.pro",
"sessionToken": "a1b2c3d4...",
"ttlMinutes": 60,
"expiresAt": "2026-03-07T15:30:00.000Z"
}
}Available domains: evilmail.pro, evilmail.cloud. Requires an active paid subscription.
受信トレイとメッセージ
一時受信トレイの受信メールを読み取り。メッセージはIMAP経由で取得され、リアルタイムで返されます。
ドメイン管理
カスタムドメインの登録、DNS認証、メールインフラの管理。ドメイン上限はプランに依存します。
メールアカウント
認証済みドメインのメールアカウントを作成、一覧表示、管理。ランダムユーザー名生成を使用した単一およびバッチ作成をサポート。
スマート認証コード抽出
APIキー受信メールから認証コードを自動抽出。自動テスト、アカウント登録フロー、CI/CDパイプラインに最適。
Extract verification code from the latest email
servicestring必須Service name (see supported list)emailstring必須Email address to search (query param){
"status": "success",
"data": {
"code": "847291",
"service": "google",
"email": "[email protected]",
"from": "[email protected]",
"subject": "Your verification code",
"date": "2026-03-07T14:22:00.000Z"
}
}Searches the last 20 messages. You must own the domain.
対応サービス
| サービス | エンドポイント | コードパターン | 送信元ドメイン |
|---|---|---|---|
| /api/regex/google | G-XXXXXX | google.com, accounts.google.com | |
| /api/regex/facebook | XXXXXX | facebookmail.com, facebook.com | |
| Twitter/X | /api/regex/twitter | XXXXXXXX | twitter.com, x.com |
| /api/regex/instagram | XXXXXX | instagram.com, mail.instagram.com | |
| TikTok | /api/regex/tiktok | XXXX-XXXXXX | tiktok.com |
| Discord | /api/regex/discord | XXXXXX | discord.com |
| /api/regex/linkedin | XXXXXX | linkedin.com | |
| iCloud | /api/regex/icloud | XXXXXX | apple.com, id.apple.com |
別のサービスが必要ですか?
お探しのサービスが上記にない場合はお知らせください。開発者のフィードバックに基づいて対応統合を定期的に拡張しており、メールベースの認証サービス用の新しいRegexパターンを追加できます。
お問い合わせ# Extract Google verification code
curl "https://evilmail.pro/api/regex/[email protected]" \
-H "X-API-Key: YOUR_API_KEY"
# Extract Discord verification code
curl "https://evilmail.pro/api/regex/[email protected]" \
-H "X-API-Key: YOUR_API_KEY"
# Extract TikTok code
curl "https://evilmail.pro/api/regex/[email protected]" \
-H "X-API-Key: YOUR_API_KEY"DNS管理
PowerDNSによる完全なDNSレコード管理。A、AAAA、CNAME、MX、TXT、NS、SRV、CAAレコードタイプをサポート。レコードは地理的に分散した4つのネームサーバー経由で伝播。
コード例
一時メールの作成、受信トレイの読み取り、認証コードの抽出に関する完全な動作サンプル。
一時メールフロー
# Create a temporary email
curl -X POST https://evilmail.pro/api/temp-email \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"domain": "evilmail.pro", "ttlMinutes": 60}'
# Response: { "data": { "email": "...", "sessionToken": "abc123..." } }
# Poll for incoming messages using the session token
curl https://evilmail.pro/api/temp-email/abc123...
# Response includes messages array
# { "data": { "email": "...", "messages": [...] } }認証コード抽出
# Extract Google verification code
curl "https://evilmail.pro/api/regex/[email protected]" \
-H "X-API-Key: YOUR_API_KEY"
# Extract Discord verification code
curl "https://evilmail.pro/api/regex/[email protected]" \
-H "X-API-Key: YOUR_API_KEY"
# Extract TikTok code
curl "https://evilmail.pro/api/regex/[email protected]" \
-H "X-API-Key: YOUR_API_KEY"ドメイン管理の例
# Add a domain
curl -X POST https://evilmail.pro/api/domains \
-H "Content-Type: application/json" \
-H "Cookie: evilmail_session=YOUR_SESSION" \
-d '{"domain": "mydomain.com"}'
# List domains
curl https://evilmail.pro/api/domains \
-H "Cookie: evilmail_session=YOUR_SESSION"
# Verify DNS
curl -X POST https://evilmail.pro/api/domains/check \
-H "Content-Type: application/json" \
-H "Cookie: evilmail_session=YOUR_SESSION" \
-d '{"domain": "mydomain.com"}'
# Create email account
curl -X POST https://evilmail.pro/api/accounts \
-H "Content-Type: application/json" \
-H "Cookie: evilmail_session=YOUR_SESSION" \
-d '{"email": "[email protected]", "password": "secure123"}'レート制限とプラン
プラン制限
| 機能 | Free | Bronze | Gold | Premium |
|---|---|---|---|---|
| カスタムドメイン | 1 | 5 | 25 | 999 |
| メール / ドメイン | 5 | 999 | 999 | 999 |
| 一時メールAPI | Webのみ | フル | フル | フル |
| Regex API | Webのみ | フル | フル | フル |
| APIレート制限 | 100/hr | 1,000/hr | 5,000/hr | 無制限 |
| 一時セッション / IP | 10 | 10 | 10 | 10 |
エンドポイントレート制限
IPアドレスごと
POST /api/auth/login10 / 15 minPOST /api/auth/register5 / 1 hourPOST /api/auth/forgot-password3 / 1 hourPOST /api/auth/reset-password5 / 15 minPUT /api/account/password5 / 15 minPOST /api/contact5 / 1 hourPOST /api/temp-email10 sessions / IPGET /api/regex/{service}プラン依存エラー処理
すべてのエラーレスポンスには「error」に設定されたstatusフィールド、人間が読めるメッセージ、ユーザーのアカウント言語に合わせたローカライズされたエラーメッセージ用のオプションのmessageKeyが含まれます。
{
"status": "error",
"message": "Domain limit reached. Upgrade your plan for more.",
"messageKey": "domainLimitReached"
}| コード | ステータス | 説明 |
|---|---|---|
| 200 | Success | Request completed successfully |
| 400 | Bad Request | Missing or invalid parameters |
| 401 | Unauthorized | Invalid or missing authentication |
| 403 | Forbidden | Insufficient permissions or plan limits |
| 404 | Not Found | Resource does not exist |
| 409 | Conflict | Resource already exists (duplicate) |
| 429 | Rate Limited | Too many requests, slow down |
| 500 | Server Error | Internal server error |
ローカライズされたエラーメッセージ
messageKeyフィールドを使用して、ユーザーの希望する言語でエラーを表示。対応言語:英語、トルコ語、ロシア語、ウクライナ語、ポーランド語、フランス語、ドイツ語、アゼルバイジャン語、ペルシャ語、フィリピノ語、ハウサ語、アカン語。
APIエクスプローラー
ブラウザから直接APIエンドポイントをテスト。APIキーを入力してリクエストを送信し、ライブレスポンスを確認できます。
https://evilmail.pro/api/temp-emaildomainttlMinutes
