โ† Temporary Email tool ๐Ÿ  Home
๐Ÿ› ๏ธ Developers

Temporary Email API

Generate a disposable inbox, receive emails and read them โ€” over a simple REST API. 100% free, no API key or sign-up required.

โš ๏ธ Public inbox. Anyone who knows an address can read its messages โ€” that's how disposable email works. Use it for sign-up codes and avoiding spam, never for banking or sensitive accounts. Messages auto-delete after 24 hours.

Base URL

All requests go to the API base URL. No authentication header is needed (an optional API key is supported).

# Base URL https://grabcast-api-342720596878.us-central1.run.app

Quick start

Create an address, then poll its inbox and read a message:

# 1) Generate a fresh disposable address curl -X POST https://grabcast-api-342720596878.us-central1.run.app/api/tmpmail/new \ -H "Content-Type: application/json" -d '{}' # -> { "address": "coolotter8f3kx@inbox.grabcast.click", "domain": "...", "ttl_hours": 24 } # 2) Poll the inbox (repeat every ~10s) curl https://grabcast-api-342720596878.us-central1.run.app/api/tmpmail/coolotter8f3kx@inbox.grabcast.click # -> { "addr": "...", "count": 1, "messages": [{ "id": 12, "from_addr": "...", "subject": "...", "snippet": "...", "read": false, "created_at": "..." }] } # 3) Read a full message by id (marks it read) curl https://grabcast-api-342720596878.us-central1.run.app/api/tmpmail/coolotter8f3kx@inbox.grabcast.click/12

Endpoints

GET/api/tmpmail/config

Returns the available domains[] (the pool) and ttl_hours. Pick any domain from the pool for your addresses.

POST/api/tmpmail/new

Generate a random address. Optional body {"domain":"..."} to pick a pool domain (else random). Returns address, domain, ttl_hours. You can also just build your own: anything@<pool-domain> (localpart: letters/digits/._- , 1โ€“64 chars).

GET/api/tmpmail/{address}

List messages for an address (newest first, up to 50). Each item: id, from_addr, from_name, subject, snippet, read, created_at (UTC ISO).

GET/api/tmpmail/{address}/{id}

Full message: text_body, html_body, headers. Marks it read. Render html_body in a sandboxed iframe to stay XSS-safe.

DELETE/api/tmpmail/{address}/{id}

Delete one message.

DELETE/api/tmpmail/{address}

Empty the whole inbox for an address.

Rate limits & fair use

API keys (optional)

The Temp Mail API works without a key. A free personal API key is useful when a script acts on your account โ€” e.g. syncing your saved tools โ€” or when you want your Temp Mail traffic tied to your account. Keys never raise the per-IP limits above.

# Read your synced favorites with a key that has prefs:read curl https://grabcast-api-342720596878.us-central1.run.app/api/me/prefs -H "X-API-Key: $GRABCAST_API_KEY"

Key errors use one JSON shape: {"detail": "message", "error": {"code": "โ€ฆ", "message": "โ€ฆ"}}.

Notes

Try the Temporary Email tool โ†’