Testing and mock data

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.
  • API
  • GraphQL
  • HTTP-GET
  • JSON
  • MCP
  • REST

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

Listed on Free Web Services

testmail.app
testmail.app API

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.

Did it work for you?

Tell us what you found when you tried testmail.app API.