Developer Reference v1.0

REST API Documentation

Integrate ephemeral email functionality directly into your software, testing pipelines (Cypress, Playwright), and automated workflows. Completely open CORS with edge routing.

Base URL:https://tempmailo.com

Open CORS & Zero Auth

No API keys or JWT tokens required. Access all endpoints directly from browser scripts, CLI, or backend services.

Cloudflare Edge

Sub-50ms execution via globally distributed serverless workers. High throughput with automatic DDoS filtering.

Ephemeral D1 Storage

Messages are stored in high-speed SQLite on the edge, with scheduled background expiration for strict privacy.

GET/api/emails
Returns: Array<EmailPreview>

Fetches up to 50 of the latest received messages for a specific email address.

Query Parameters

addressstringrequired
The full temporary email address (e.g. user@nbteam.dev).
curl -X GET \
  "https://tempmailo.com/api/emails?address=test@nbteam.dev"

Response 200 (OK)

[
  {
    "id": "c7a8b9-1234-5678",
    "to_address": "test@nbteam.dev",
    "from_address": "security@service.com",
    "subject": "Your Verification OTP Code: 489210",
    "created_at": "2026-08-10T12:00:00.000Z",
    "attachments": "[]"
  }
]
GET/api/emails/:id
Returns: EmailDetail

Retrieves the full email content including raw HTML body, plain text fallback, and parsed attachment metadata.

Path Parameters

idstringrequired
The unique UUID ID of the message.
cURL Example
curl -X GET "https://tempmailo.com/api/emails/c7a8b9-1234-5678"

Response 200 (OK)

{
  "id": "c7a8b9-1234-5678",
  "to_address": "test@nbteam.dev",
  "from_address": "security@service.com",
  "subject": "Your Verification OTP Code: 489210",
  "text_body": "Use OTP 489210 to complete login.",
  "html_body": "<div style='font-family:sans-serif'><h1>489210</h1><p>Use OTP to complete login.</p></div>",
  "attachments": "[]",
  "created_at": "2026-08-10T12:00:00.000Z"
}
DELETE/api/emails/:id
Returns: Status Object

Permanently purges an email and all linked attachments from the ephemeral database immediately.

curl -X DELETE "https://tempmailo.com/api/emails/c7a8b9-1234-5678"
{
  "success": true
}

Interactive API Tester

Live Client Fetch

Test queries directly in your browser against the live backend API.