An inbox is an email address on tokenmail.dev or your own domain. On tokenmail.dev, Tokenmail adds a random suffix to the name you choose: signup becomes signup-k3f9qz@tokenmail.dev. name+anything@ delivers to name@. Name an inbox in commands by address, local part or id.
$ tokenmail messages ADDRESS # newest first; --label, --sent, --all
$ tokenmail read ADDRESS msg_… # --html, --raw
$ tokenmail threads ADDRESS · thread ADDRESS thr_…
$ tokenmail search "invoice" [--inbox ADDRESS]
$ tokenmail label ADDRESS msg_… --add done --remove unread
$ tokenmail attachment ADDRESS msg_… att_0
$ tokenmail list · billing · rm ADDRESSCodes, links and waiting
Each message carries the codes and verification links found in it, most likely first; footer links are skipped. tokenmail wait ADDRESS --code (or --link) waits for the next message and prints just that. wait counts mail from the last minute, so start it right after submitting the form. Options: --from, --subject, --timeout seconds (default 300), --json. Over the API: GET /v1/inboxes/ADDRESS/wait?timeout=60.
Messages, threads and labels
Messages have headers, text, HTML, attachments, and extracted_text/extracted_html (the reply without quotes or signature). Replies join their thread. System labels: received, sent, unread, unauthenticated, blocked, bounced. Add your own, plus spam and trash, on messages, threads or up to 100 at once. Lists and waits hide spam, blocked, unauthenticated and trash unless asked (include_spam=true etc.). Search covers subjects, addresses and bodies.
Sender checks
Received mail is checked with SPF, DKIM and DMARC (auth on the message). DMARC reject/quarantine failures are refused. Mail passing neither SPF nor DKIM gets unauthenticated, so a forged code never reaches wait. See it with --unverified or include_unauthenticated=true.
Inbox settings
Display name, client_id (idempotent create), metadata, signature, expiry_hours (under the 30-day default) and status (deactivated refuses mail; optionally at deactivate_at).
Allow and block lists
For receiving, sending and replying, per account or inbox: tokenmail rules add receive block spam.example. Once an allow list has entries, only those pass. Blocked mail is kept with the blocked label.
The dashboard
dash.tokenmail.dev is a mail client with folders, search, Domains and Settings. HTML mail renders without scripts or remote images.
What's kept
Only mail for existing inboxes is accepted. Messages are kept 30 days. A deleted address is never reissued.
Don't use inboxes to create accounts in bulk, evade bans or bypass CAPTCHAs; solve a CAPTCHA yourself, for example in a Soulsand sandbox's desktop (see the acceptable use policy).