- Create inbox —
POST /api/new_address→{ address, jwt } - Wait for mail — poll
GET /api/mails?limit=1&offset=0, then fetchGET /api/mail/:uuid - Extract content — OTP codes or links from the raw body
POST /api/new_address requires a Cloudflare Turnstile token on the public instance. For scripts, pre-create the address in the web UI and copy the JWT (see API Overview), or self-host with Turnstile disabled. The mail-reading endpoints used below need only the JWT.Python
tempinbox.py
usage.py
Node.js
Zero dependencies — uses the built-infetch (Node 18+).
tempinbox.mjs
usage.mjs
Shell (cURL + jq)
For CI steps and quick one-offs:tempinbox.sh
Polling guidelines
These apply to every client above:Related reading
- Temp Mail API: Automate Disposable Inbox Flows — API walkthrough and use cases
- API Overview — auth, Turnstile, rate limits
- Selenium, Playwright, and Cypress guides — full test-framework examples