Tokenmaildocs
Dashboard

DocsTokenmail

Get started

One Tokenmail account works for the dashboard at dash.tokenmail.dev, the tokenmail CLI and the API at https://api.tokenmail.dev. Signing in the first time makes it.

Install the CLI

$ curl -fsSL https://tokenmail.dev/install | sh

On macOS and Linux (and WSL). The installer checks the CLI's SHA-256 and puts it in ~/.local/bin (TOKENMAIL_BIN_DIR to change it). On Windows 10 or later, in PowerShell: irm https://tokenmail.dev/install.ps1 | iex.

Sign in

$ tokenmail login        # approve a code in the dashboard

Sign in with Google or a 6-digit code by email (sign-in methods). On a machine without a browser, use an API key instead: tokenmail login --key KEY, pipe it in, or set TOKENMAIL_API_KEY.

Make an inbox and read a code

$ tokenmail create --username signup --name "acme trial"   # signup-k3f9qz@tokenmail.dev; first time opens Checkout
$ tokenmail wait signup-k3f9qz@tokenmail.dev --code        # prints just the code
$ tokenmail wait signup-k3f9qz@tokenmail.dev --link --from acme   # or the verification link

The first inbox opens Stripe Checkout ($2 a month; see billing). wait counts mail from the last minute, so start it right after submitting the form.

The API

Make a key on the dashboard's API keys page or with tokenmail api-key create (scopes: inbox.read, inbox.send, inbox.write), then:

$ curl -H "Authorization: Bearer $TOKENMAIL_API_KEY" https://api.tokenmail.dev/v1/inboxes
$ curl -H "Authorization: Bearer $TOKENMAIL_API_KEY" "https://api.tokenmail.dev/v1/inboxes/ADDRESS/wait?timeout=60"

Everything is under /v1/inboxes (messages, threads, drafts, wait, events, lists, domains, forwarding, suppressions, billing); see the OpenAPI document and SDKs.

For agents: MCP

$ claude mcp add tokenmail -- tokenmail mcp

Or the hosted server at https://api.tokenmail.dev/mcp, signed in by browser or with a key. See froog's MCP server docs.