Kein Login · Kein API-Schlüssel
Jetzt anonym starten
Dieselbe API, auf der die TempMail-Web-App basiert. Jedes Postfach erhält eine zufällige Adresse und bleibt 24 Stunden aktiv.
- 1POST /accounts erstellt ein Postfach mit zufälliger Adresse und Passwort.
- 2POST /token tauscht Adresse und Passwort gegen ein tm_box_-Postfach-Token ein.
- 3GET /messages gibt eingehende E-Mails zurück, wobei Bestätigungscodes bereits extrahiert sind.
BASE=https://www.tempmail.ai/api/v1
# 1. Create a mailbox (random address + password)
curl -s -X POST "$BASE/accounts" \
-H "Content-Type: application/json" -d '{}'
# {"id":"…","address":"k3x9m2q7…@tempmail.ai","password":"…","expires_at":"…"}
# 2. Exchange the credentials for a mailbox token
curl -s -X POST "$BASE/token" \
-H "Content-Type: application/json" \
-d '{"address":"ADDRESS","password":"PASSWORD"}'
# {"id":"…","token":"tm_box_…","token_type":"Bearer","expires_at":"…"}
# 3. Read messages – verification codes are already extracted
curl -s "$BASE/messages" -H "Authorization: Bearer TOKEN"
# {"items":[{"from":"[email protected]","subject":"Your verification code","verification_code":"482913",…}],"total":1,…}