Email inbox API for E2E testing
Create a one-time address per test and get the OTP and verification link back as JSON.bash# Create an address$ curl -s -X POST https://chobitmail.com/api/inboxes \-H "Authorization: Bearer $CHOBITMAIL_API_KEY"{ "address": "v56m2aq5ly17piq3@chobitmail.com", … }# Wait for mail and get parsed JSON$ curl -s "https://chobitmail.com/api/inboxes/v56m2aq5ly17piq3/messages/wait?timeout=25" \-H "Authorization: Bearer $CHOBITMAIL_API_KEY"{"subject": "Your code","codes": ["482913"],"links": ["https://myapp.example/verify?token=…"]}
What you get
Real email, not mocksAssert against actual delivery.
OTP and links extractedUse codes / links directly. No HTML parsing.
Addresses via APISingle-use per test, auto-expire, no cleanup.
Just curlPlain REST, no SDK. Playwright helper available.
How it works
- 1Create a one-time inbox via the API
- 2Have your app send mail to that address
- 3Wait via the API and assert with the OTP or link
Pricing
Free. GitHub sign-in only, no credit card.| Limit | Free | Free (verified domain) |
|---|---|---|
| Concurrent inboxes | 1 | 2 |
| Messages per day | 5 | 100 |
| Inbox TTL | 10 min | 10 min |