Guides / Catch-All OTP API
Automation Guide
1-Step Wildcard Catch-All Email API for Automated OTP Extraction
Generate addresses deterministically inside your script, skip inbox provisioning, and read extracted verification codes back with a single long-poll HTTP call.
With Dev-Mail API & Catch-All Pro (9 USDT/month or 25 USDT/year), any prefix@domain on our clean domains is ready immediately. There is no IMAP server to poll, no HTML regex to maintain, and no 2-step token state to pass between workers.
Standard 2-step vs. 1-step Wildcard Catch-All
| Capability | Free API (2 codes/day) | API & Catch-All Pro (9 USDT/mo) |
|---|---|---|
| Inbox creation | Must call POST /v1/inboxes first | Deterministic: invent any worker_042@winmail.cfd locally |
| Clean domains | Free pool only (diyapn.com, mailcom.top, i-os.top, nicepl.com) | All 7 domains incl. winmail.cfd, kingshould.com, aeria-mall.com |
| Rate limits | 60 req/min · 20 inboxes/hr per IP | 600 req/min · 500 inboxes/hr per license |
| Code extraction | Automatic 4-8 digit OTP + magic link | Automatic 4-8 digit OTP + magic link, unlimited unlocks |
Python example (zero state, 10 lines)
Pick your own prefix (for instance run_042@winmail.cfd), record since right before triggering the email, and long-poll /code with your license key:
import time, requests
KEY = "DMP-XXXXX-XXXXX-XXXXX-XXXXX"
ADDR = f"job_{int(time.time())}@winmail.cfd"
since = int(time.time())
# 1. Submit ADDR in your signup / verification flow
# trigger_verification_email(ADDR)
# 2. Wait up to 60s for the extracted OTP or magic link
r = requests.get(
f"https://dev-mail.com/v1/inboxes/{ADDR}/code",
params={"wait": 60, "since": since},
headers={"X-License-Key": KEY},
timeout=60 + 10,
)
data = r.json()
print("OTP:", data.get("code"), "Link:", data.get("link"))
You can also send the key as Authorization: Bearer DMP-... or query parameter ?key=DMP-.... All three carry your license quota across IPs.
Node.js / TypeScript example
const KEY = process.env.DEVMAIL_KEY!;
const addr = `worker_${crypto.randomUUID().slice(0, 8)}@winmail.cfd`;
const since = Math.floor(Date.now() / 1000);
// trigger signup using `addr` ...
const res = await fetch(
`https://dev-mail.com/v1/inboxes/${encodeURIComponent(addr)}/code?wait=60&since=${since}`,
{ headers: { "X-License-Key": KEY } }
);
const { found, code, link } = await res.json();
if (!found) throw new Error("No verification email arrived");
Ready to run Wildcard Catch-All in production?
Try the standard 2-step API free first (2 full unlocks/day per IP). When you need clean domains and 1-step Wildcard Catch-All at 600 req/min, activate an API Pro key in ~8 seconds with USDT or USDC on BSC, Polygon, Arbitrum, or Base.
Get API & Catch-All Pro (9 USDT/mo) →