Giriş gerekmez · API anahtarı gerekmez
Anonim olarak hemen başlayın
TempMail web uygulamasını destekleyen API'nin aynısı. Her posta kutusu rastgele bir adres alır ve 24 saat boyunca geçerli kalır.
- 1POST /accounts rastgele bir adres ve parola ile bir posta kutusu oluşturur.
- 2POST /token adres ve parolayı bir tm_box_ posta kutusu tokeni ile değiştirir.
- 3GET /messages doğrulama kodları önceden ayıklanmış şekilde gelen e-postaları döndürür.
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,…}