Temp Mail API
Create temporary email accounts and receive emails via REST API. No API key required.
# 1. Get available domains
curl https://api.mail.tm/domains
# 2. Create account
curl -X POST https://api.mail.tm/accounts \
-H "Content-Type: application/json" \
-d '{"address":"user@domain.com","password":"secret"}'
# 3. Get token
curl -X POST https://api.mail.tm/token \
-H "Content-Type: application/json" \
-d '{"address":"user@domain.com","password":"secret"}'
# 4. Fetch messages
curl https://api.mail.tm/messages \
-H "Authorization: Bearer TOKEN"
Workflow
How it works
Fetch domains
Get available domain names from the API.
Create account
Create a temporary email account with one request.
Use the address
Sign up on sites that require email confirmation.
Message arrives
We receive it and store it for you.
Fetch messages
Fetch messages via the API or listen in real-time with SSE.
Step 0 of 0
Pricing
Access to the API
Completely free. No API key, no signup, no paid tiers.
- No API key requiredJust call the endpoints. No signup, no tokens to start.
- 8 QPS rate limitThe general quota limit is 8 queries per second (QPS) per IP address.
Policy
Terms of Use
- No illegal activityUsage of our API for illegal activity is strictly prohibited.
- No resellingDon't build a paid product that just wraps our API.
- No proxy servicesDon't mirror or proxy our API under a different domain.
- Attribution requiredIf you use our API, link back to mail.tm somewhere visible.
General Information
The API follows the OpenAPI v3 spec. Download it or explore interactively.