List emails
GET /api/mails?limit=20&offset=0
Returns emails for the authenticated address, newest first.
Response
For polling, call GET /api/mails?limit=1&offset=0 repeatedly until count > 0. Add a delay of 2–5 seconds between polls to avoid rate limiting.
Get a single email
GET /api/mail/:uuid
Returns the full email including the raw RFC 2822 body. Parse raw client-side to extract subject, body HTML, and attachments.
Response
Delete an email
DELETE /api/mails/:uuid
Soft-deletes a single email. Returns immediately.
Clear inbox
DELETE /api/clear_inbox
Deletes all emails in the inbox at once.
Response