testmail.app API
by testmail.app
Testing and mock data
Added on December 1st, 2026
Visit testmail.app →
What it does
testmail.app receives e-mail for automated tests: send a message to any address in your namespace and read it back through the API, for example to check sign-up confirmations or password resets in a CI run. It offers a JSON API over GET and a GraphQL API. Free plan with 100 e-mails a month and 1 day of retention; new accounts start with a 14-day trial and then move to this plan. An official MCP server at https://api.testmail.app/mcp lets AI agents create test addresses and read the mail.
At a glance
- API key
- Needed, free · More APIs with a free key
- Pricing
- Free plan with 100 e-mails a month and 1 day of retention; new accounts start with a 14-day trial and then move to this plan.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET, GraphQL, MCP
- Provider
- testmail.app
More information: https://testmail.app/docs/
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://api.testmail.app/api/json?apikey=YOUR_API_KEY&namespace=YOUR_NAMESPACE'
JavaScript
const response = await fetch("https://api.testmail.app/api/json?apikey=YOUR_API_KEY&namespace=YOUR_NAMESPACE");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://api.testmail.app/api/json?apikey=YOUR_API_KEY&namespace=YOUR_NAMESPACE",
timeout=30,
)
print(response.json())
Replace YOUR_API_KEY and YOUR_NAMESPACE with your own values from your account. The JavaScript works in a web page as well as in Node.js 18 or newer.