Create isolated inboxes on demand, receive emails via SMTP, and fetch them instantly through a simple REST API. No more shared mailboxes or flaky email tests.
# 1. Create a disposable inbox inbox = requests.post("https://getmailflat.com/api/inboxes", headers={"Authorization": "Bearer YOUR_API_KEY"}, json={"prefix": "signup"} ).json() # → { "address": "signup@x7k2m.getmailflat.com" } # 2. Trigger the signup flow in your app driver.find_element(By.ID, "email").send_keys(inbox["address"]) # 3. Fetch the OTP from the inbox emails = requests.get(f"https://getmailflat.com/api/inboxes/{inbox['address']}/emails", headers={"Authorization": "Bearer YOUR_API_KEY"} ).json() otp = re.search(r'\d{6}', emails[0]["body"]).group()
signup@x7k2.getmailflat.com./api/inboxes and get a unique email address instantly.Start for free. No credit card. No setup. Just working email inboxes for your tests.
Get started for free →
Have a suggestion, bug report, or just want to say hi?
Reach out to Onder Yentar directly: