API DOCS
Build on TempMail. Generate disposable inboxes, poll for incoming mail, and manage addresses — all over plain HTTPS, no API key required.
QUICK START
# 1. Create an inbox
curl "https://mecx.shop/api/generate"
# -> {"success":true,"email":"x7k2m9pq4w@pulseexchange.org",...}
# 2. Use the address anywhere, then poll for mail
curl "https://mecx.shop/api/emails?address=x7k2m9pq4w@pulseexchange.org"Inboxes expire after 1 hour (extendable). Every /api/* route is mirrored under /api/v1/*. Timestamps are Unix milliseconds.
ENDPOINTS
/api/generateCreate a random inbox
Generates a fresh random disposable address. No API key needed.
domain string optionalcurl "https://mecx.shop/api/generate"{
"success": true,
"email": "x7k2m9pq4w@pulseexchange.org",
"domain": "pulseexchange.org",
"expiresIn": 3600,
"expiresAt": 1792377825648,
"maxExpiresAt": 1792381425648,
"isCustom": false
}/api/generateCreate a custom inbox
Register an inbox with a username you choose (3-30 chars, a-z 0-9 . _ -). Returns 409 if taken.
{
"customUsername": "myname",
"domain": "pulseexchange.org"
}curl -X POST "https://mecx.shop/api/generate" \
-H "Content-Type: application/json" \
-d '{"customUsername":"myname"}'{
"success": true,
"email": "myname@pulseexchange.org",
"domain": "pulseexchange.org",
"expiresIn": 3600,
"expiresAt": 1792377825648,
"maxExpiresAt": 1792381425648,
"isCustom": true
}/api/generate?domains=trueList available domains
Returns every domain currently accepting mail.
curl "https://mecx.shop/api/generate?domains=true"{
"success": true,
"domains": ["pulseexchange.org", "primehosts.net"]
}/api/generate?check=<username>Check username availability
See if a custom username is free on a domain before registering.
check string requireddomain string optionalcurl "https://mecx.shop/api/generate?check=myname"{
"success": true,
"username": "myname",
"domain": "pulseexchange.org",
"available": true
}/api/inbox?address=<email>Get inbox info
Fetch an inbox's details, expiry, and whether it can be extended.
address string requiredcurl "https://mecx.shop/api/inbox?address=x7k2m9pq4w@pulseexchange.org"{
"success": true,
"inbox": {
"address": "x7k2m9pq4w@pulseexchange.org",
"expiresAt": 1792377825648,
"maxExpiresAt": 1792381425648,
"domain": "pulseexchange.org"
},
"canExtend": true,
"remainingExtendMinutes": 60
}/api/emails?address=<email>List inbox emails
Read the emails received by an inbox. Anyone with the address can read it - that's the point of temp mail.
address string requiredid string optionalsearch string optionaltrash string optionalstats string optionalcurl "https://mecx.shop/api/emails?address=x7k2m9pq4w@pulseexchange.org"{
"success": true,
"emails": [
{
"id": "1792374225644-lgs0zhl27",
"from_address": "noreply@example.com",
"subject": "Verify your account",
"date": 1792374225644,
"read": false
}
]
}/api/inbox?address=<email>&action=extendExtend inbox expiry
Push an inbox's expiry forward (up to its max). Inboxes live 1 hour by default.
address string requiredaction string requiredcurl -X PATCH "https://mecx.shop/api/inbox?address=x7k2m9pq4w@pulseexchange.org&action=extend"{
"success": true,
"message": "Inbox extended",
"expiresAt": 1792381425648
}/api/inbox?address=<email>Delete an inbox
Permanently delete an inbox and its emails.
address string requiredcurl -X DELETE "https://mecx.shop/api/inbox?address=x7k2m9pq4w@pulseexchange.org"{
"success": true,
"message": "Inbox deleted successfully"
}/api/qrcode?email=<email>Address QR code
Get a scannable QR code for an address. Useful for mobile handoff.
email string requiredformat string optionalcurl "https://mecx.shop/api/qrcode?email=x7k2m9pq4w@pulseexchange.org&format=svg"NOTES
- No authentication — treat inbox addresses as public bearer tokens.
- Inboxes expire after 1 hour by default; extend via PATCH up to the max.
- Mail is received in real time over SMTP; poll /api/emails for new arrivals.
- Errors return
{"success": false, "error": "..."}with an HTTP 4xx/5xx status.