Tài liệu API công khai dành cho client. Chỉ bao gồm các endpoint an toàn và cần thiết để sử dụng dịch vụ.
Temp Mail API cho phép:
/api/email/{recipient}
Lấy danh sách email hiện có của một địa chỉ email tạm thời.
GET /api/email/demo@example.com
[
{
"id": "uuid",
"subject": "Welcome",
"fromAddress": "no-reply@service.com",
"toAddress": "demo@example.com",
"createdAt": 1700000000,
"readAt": null
}
]
/api/inbox/{email_id}
Lấy nội dung chi tiết của một email theo ID.
GET /api/inbox/uuid
{
"id": "uuid",
"subject": "Welcome",
"fromAddress": "no-reply@service.com",
"toAddress": "demo@example.com",
"createdAt": 1700000000,
"readAt": 1700000010,
"body": "<p>Email content</p>"
}
/api/domains
Trả về danh sách domain hiện được hỗ trợ để tạo email.
[
"@example.com",
"@mail.example"
]
/api/health
Kiểm tra trạng thái hoạt động của hệ thống.
{
"status": "ok"
}