
Spare Mailbox Temp Email API
Disposable inboxes for automated tests, with the verification code already extracted.
Create a random address, point your signup or login flow at it, and read the inbox. Each inbox entry carries the otp code and magicLink found in the message, so a test can read a verification code with one call and no parsing.
Subscribe to the free plan on RapidAPI · Support: terrelllouis056@gmail.com
What you get
| Endpoint | Returns |
|---|---|
/emails/generate |
A new random address, ready to receive mail at once |
/emails/inbox |
Messages for an address, newest first: id, sender, subject, time, otp and magicLink |
/emails/message |
One message with its text and HTML bodies and attachments |
/emails/attachment |
One attachment’s bytes |
/deliverability/test, /deliverability/report |
A test address and an SPF, DKIM and DMARC report for a sender |
Use cases
- End-to-end signup and password reset tests in pytest, Playwright or Cypress
- OTP and magic-link login tests
- QA of transactional email content
- Deliverability checks of your own sending domain
Quick start
- Subscribe to the free Basic plan on RapidAPI (20 requests a month).
- Copy your
X-RapidAPI-Key. - Create an address:
curl --request GET \
--url 'https://spare-mailbox-temp-email-api.p.rapidapi.com/emails/generate' \
--header 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY' \
--header 'X-RapidAPI-Host: spare-mailbox-temp-email-api.p.rapidapi.com'
Tutorials
Support
Questions, bugs or feature requests: terrelllouis056@gmail.com.