Documentation Index
Fetch the complete documentation index at: https://docs.tempinbox.dev/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Important: Cloudflare Turnstile
Temp Email uses Cloudflare Turnstile to protect thePOST /api/new_address endpoint from abuse. This means:
- Browser-based use works automatically — Turnstile runs invisibly in the UI
- Automated/API use requires a valid
cf_token— you must solve a Turnstile challenge before creating an address
For developer and QA automation, the recommended approach is to use the Temp Email web UI to pre-create addresses, copy the JWT from the browser (cookies or response body), and then use that JWT directly in your scripts to call the mail endpoints. The mail endpoints (
/api/mails, /api/mail/:uuid) do not require Turnstile.Getting a JWT for automation
- Open tempinbox.dev in your browser
- An address is created automatically — the JWT is set as an
HttpOnlycookie namedjwt - Open DevTools → Application → Cookies → copy the
jwtvalue - Use it as
Authorization: Bearer <jwt>in your API calls
POST /api/new_address returns a JWT directly with no challenge.
Authentication
Most endpoints require a JWT bearer token:Rate Limits
Rate limiting applies per IP on all write and read endpoints. Exceeded requests return429 Too Many Requests.
| Endpoint | Limit |
|---|---|
POST /api/new_address | Strict — Turnstile + IP rate limit |
GET /api/mails | Per IP, per path |
GET /api/mail/:uuid | Per IP, per path |
POST /api/switch_address | Per IP |
DELETE /api/delete_address | Per IP |
DELETE /api/clear_inbox | Per IP |
GET /api/settings | Per IP |
GET /api/attachment/* | Per IP |
- Add 2–3 second delays between poll attempts on
/api/mails - Do not create new addresses in tight loops — reuse JWTs across test runs where possible
- Use one inbox per test run, not one per assertion
Endpoint Groups
| Group | Description |
|---|---|
| Addresses | Create, inspect, and delete temporary email addresses |
| Mails | List, read, and delete emails in an inbox |
| Session | Manage up to 3 addresses per browser session |
| System | Health check |