Mailpit API Client

JSON →
library 1.9.0 ·javascript
verified May 27, 2026

The `mailpit-api` package provides a robust TypeScript client for programmatically interacting with the Mailpit REST API. It enables developers to automate email testing workflows in various JavaScript environments, including Node.js, browsers, and modern JS runtimes, making it ideal for end-to-end (E2E) testing with frameworks like Playwright. The current stable version is 1.9.0, with minor releases and patch fixes occurring frequently, often driven by dependency updates and feature enhancements such as WebSocket support for real-time event listening. Key differentiators include its TypeScript-first design, comprehensive documentation, and specific utilities for common testing scenarios like waiting for messages to arrive, clearing mailboxes, and inspecting email content, all while maintaining compatibility across diverse JavaScript ecosystems. It simplifies the integration of email verification into automated test suites by abstracting the raw Mailpit API calls.

total hits 19
actors 8 distinct systems
last hit 3d ago AhrefsBot
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇮 Finland · 🇫🇷 France · 🇩🇪 Germany