此API提供临时邮箱服务,可以创建临时邮箱和接收邮件。
端点: GET/POST /mailbox
请求头:
Accept: application/json Accept-Encoding: gzip Authorization: [创建TOKEN(如果存在)]
响应示例:
{
"token": "eyJhbGciOiJIUz...",
"mailbox": "example@domain.com"
}
端点: GET/POST /messages
请求头:
Accept: application/json Accept-Encoding: gzip Authorization: [邮箱token]
响应示例:
{
"mailbox": "example@domain.com",
"messages": [
{
"_id": "123456789",
"receivedAt": 1746356501,
"from": "sender@example.com",
"subject": "测试邮件",
"bodyPreview": "邮件预览内容",
"attachmentsCount": 0
}
]
}
端点: GET/POST /messages/{messageId}
请求头:
Accept: application/json Accept-Encoding: gzip Authorization: [邮箱token]
响应示例:
{
"_id": "123456789",
"receivedAt": 1746356501,
"mailbox": "example@domain.com",
"from": "sender@example.com",
"subject": "测试邮件",
"bodyPreview": "邮件预览内容",
"bodyHtml": "邮件HTML内容",
"attachmentsCount": 0,
"attachments": []
}