Developer & Email Testing API
REST & WebSocket endpoints for automated QA registration testing, OTP extraction, and live email DNS diagnostics.
Open 1-Hour Test Inbox โ1. Temporary Mailbox Endpoints
POST /api/mailboxโ Create a private disposable inbox (supportsttlSeconds: 600, 3600, 86400; setsHttpOnlysession cookie).GET /api/mailboxโ Fetch current inbox status, address, and expiration timestamp.POST /api/mailbox/extendโ Extend active inbox TTL by +10 minutes.DELETE /api/mailboxโ Immediately purge the inbox and all messages.GET /api/mailbox/messagesโ List received messages with auto-extractedverificationCode.GET /api/mailbox/messages/:idโ Fetch sanitized HTML, plain text, and OTP details.GET /api/mailbox/wsโ Upgrade to WebSocket for real-timenew_messageevents.
2. Email Diagnostic Tool Endpoints
GET /api/tools/mx-lookup?domain=gmail.comโ Live DNS MX records and priorities.POST /api/tools/email-validatorโ Syntax, MX, role-prefix, and disposable check.GET /api/tools/spf-checker?domain=google.comโ SPF TXT record and policy check.GET /api/tools/dkim-checker?domain=gmail.com&selector=googleโ DKIM public key lookup.GET /api/tools/dmarc-checker?domain=github.comโ DMARC policy & reporting check.GET /api/tools/domain-checker?domain=sdds.cc.cdโ Combined MX/SPF/DMARC/MTA-STS health score.POST /api/tools/header-analyzerโ Parse raw headers, hops, and authentication results.
3. Quick cURL Example
curl -s "https://tempmailgen.dev/api/tools/mx-lookup?domain=gmail.com"
curl -s -X POST "https://tempmailgen.dev/api/tools/email-validator" \
-H "Content-Type: application/json" \
-d '{"email":"qa@gmail.com"}'
4. Fair Use & Rate Limits
Public endpoints are rate-limited per IP to prevent abuse (10 mailbox creations/min, 30 diagnostic tool calls/min). For higher-volume dedicated QA pipelines, reach out via Contact Us.