Developer API
TempMailbox API
A small REST + SSE surface for creating disposable inboxes and reading mail. No keys required for the local dev server. Production deployments enforce per-IP rate limits.
Base URL
http://localhost:3001
Endpoints
POST
/api/inboxCreate a new disposable inbox. Returns address + expiry.
body: { "local"?: string, "domain"?: string }→ { "address": "...", "createdAt": 1234, "expiresAt": 1234 }GET
/api/inbox/:addressList the messages currently in an inbox.
→ { "address": "...", "expiresAt": 1234, "messages": [...] }GET
/api/inbox/:address/message/:idFetch a single message including its body and attachments.
DELETE
/api/inbox/:address/message/:idDelete a message from the inbox before expiry.
GET
/api/inbox/:address/streamServer-Sent Events stream of new messages, in real time.
GET
/api/domainsList the domains accepted by the SMTP receiver.
Quickstart
curl -s -X POST http://localhost:3001/api/inbox \
-H 'Content-Type: application/json' \
-d '{}'
# → { "address": "quick.lynx.ab12cd@tempmail.local", ... }Rate limits
Free tier: 60 inbox creations per hour per IP. Pro: 600/hour. Business: configurable. Exceeded requests return 429 Too Many Requests.