2b4d Temp Mail API
The Temp Mail API lets you create a temporary address, receive messages through Cloudflare Email Routing, read message summaries, fetch sanitized message detail, and clear an inbox for your current API session.
Base URL:
https://2b4d.orgSupported mail domains:
fuckemail.orgg3m4.devshineshop.storefreelet.org
Session model
Section titled “Session model”The API is intentionally session-scoped.
- Call
POST /api/tempmail/addressto create or claim an address. - Store the returned
Set-Cookievalues (tm_sessionandtm_nonce). - Send the
Cookieheader on inbox, message, and clear requests.
No public CORS headers are emitted. Browser integrations should call the API from the same origin or proxy it through their own backend.
Quick start
Section titled “Quick start”curl -i https://2b4d.org/api/tempmail/address \ -H "Content-Type: application/json" \ --data '{"random":true,"domain":"g3m4.dev","algorithm":"compact"}'Save the cookies from the response, then poll the inbox:
curl https://2b4d.org/api/tempmail/inbox?email=YOUR_EMAIL \ -H "Cookie: tm_session=...; tm_nonce=..."Retention
Section titled “Retention”Messages expire after 24 hours. Each inbox response returns only currently visible, non-expired messages for the current session.
API reference
Section titled “API reference”See Endpoints for request and response shapes.
AI-readable docs
Section titled “AI-readable docs”For AI agents and coding assistants, the same API contract is available as plain text:
/llms.txt— compact index and usage summary./llms-full.txt— full endpoint contract with examples.