Skip to main content
Ready-to-use client helpers for the three most common automation environments. All of them implement the same three operations:
  1. Create inboxPOST /api/new_address{ address, jwt }
  2. Wait for mail — poll GET /api/mails?limit=1&offset=0, then fetch GET /api/mail/:uuid
  3. 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-in fetch (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: