Skip to main content

EdgeMail API Playground

Interactive demo of sending, scheduling, and searching emails via the EdgeMail API

📧 Send Email

API Endpoint

POST /api/send
Authorization: Bearer sk-your-key

In this demo, requests are simulated. Use the code examples to integrate into your Worker.

Quick Links

Code Example

const sender = new EmailSender({
  db: env.EMAIL_DB,
  resendApiKey: env.RESEND_API_KEY,
})

await sender.send({
  to: '[email protected]',
  subject: 'Hi',
  html: '<h1>Welcome</h1>',
})

Key Features

📤 Send Email

Via Resend with per-domain API key routing

📥 Receive Email

Via CF Email Routing with MIME parsing

⏰ Schedule Emails

Queue with cron-based delayed dispatch

🔍 Full-Text Search

FTS5 search across subject, body, addresses

🏷️ Labels & Filters

Auto-sorting rules for inbound mail

🔐 Auth (API Key + JWT)

Programmatic + webmail UI support

Database Schema (14 Tables)

emails
email_mailboxes
email_contacts
email_labels
email_filter_rules
email_templates
email_aliases
email_autoresponders
email_scheduled
email_blocked_senders
email_custom_folders
email_attachments
email_label_map
emails_fts (FTS5)

Ready to Build?

Everything runs on Cloudflare Workers. Free tier: 5GB D1, 10GB R2, 100k requests/day.