Tên API | Method | Endpoint | Tham số | Mô tả |
---|---|---|---|---|
Lấy danh sách mail | GET | /messages |
username , domain |
Trả về danh sách email của địa chỉ tạm thời. |
Xem nội dung mail | GET | /messages |
id , username , domain |
Lấy chi tiết nội dung email theo ID. |
Tạo email ngẫu nhiên | Client | - |
Không | Tạo tên email tự động từ client bằng JavaScript. |
Làm mới hộp thư | Client | - |
Không | Tự động gọi API /messages để cập nhật danh sách email mỗi 5 giây. |
📥 1. Lấy danh sách email:
GET /messages?username=linh123&domain=3dslink.com
cURL:
curl "https://yourdomain.com/messages?username=linh123&domain=3dslink.com"
Phản hồi mẫu (JSON):
{
"result": [
{
"id": "1",
"subject": "Chào bạn",
"from": "support@abc.com",
"date": "2025-04-12 10:00:00"
}
]
}
📨 2. Lấy nội dung chi tiết email:
GET /messages?id=1&username=linh123&domain=3dslink.com
cURL:
curl "https://yourdomain.com/messages?id=1&username=linh123&domain=3dslink.com"
Phản hồi mẫu (HTML):
<div>
<p>Chào bạn!</p>
<p>Đây là nội dung email.</p>
</div>