Không cần đăng nhập · Không cần API key
Bắt đầu ngay, ẩn danh
Cùng một API đang vận hành ứng dụng web TempMail. Mỗi hộp thư nhận một địa chỉ ngẫu nhiên và tồn tại trong 24 giờ.
- 1POST /accounts tạo hộp thư với địa chỉ và mật khẩu ngẫu nhiên.
- 2POST /token đổi địa chỉ và mật khẩu lấy mailbox token tm_box_.
- 3GET /messages trả về thư đến kèm mã xác minh đã được trích xuất sẵn.
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,…}