MailDock API
  1. 邮件
MailDock API
  • 邮局 API 使用说明
  • 邮箱
    • 新建邮箱
      POST
    • 批量新建邮箱
      POST
    • 编辑邮箱
      POST
    • 删除邮箱
      POST
  • 邮件
    • 获取最新一封邮件
      GET
  1. 邮件

获取最新一封邮件

GET
https://api.998816.xyz/mail
可以过滤收件人(Catch All邮箱用)和发件人。如想要更加灵活的取件过滤,请使用imap协议进行取件。

请求参数

Query 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.998816.xyz/mail?username=test@998816.xyz&password=1234567&format=html&to=to@998816.xyz&from=from@998816.xyz'

返回响应

🟢200成功
application/json
Body

示例
{
    "success": true,
    "mail": {
        "subject": "\u9a8c\u8bc1\u4f60\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740",
        "from": "account-security-noreply@accountprotection.microsoft.com",
        "date": "2025-10-02 09:36:13",
        "body": "<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" dir=\"ltr\"> \r\n<head>\r\n<style type=\"text\/css\">\r\n .link:link, .link:active, .link:visited {\r\n       color:#2672ec !important;\r\n       text-decoration:none !important;\r\n }\r\n\r\n .link:hover {\r\n       color:#4284ee !important;\r\n       text-decoration:none !important;\r\n }\r\n<\/style>\r\n<title><\/title>\r\n<\/head>\r\n<body>\r\n<table dir=\"ltr\">\r\n      <tr><td id=\"i1\" style=\"padding:0; font-family:'Segoe UI Semibold', 'Segoe UI Bold', 'Segoe UI', 'Helvetica Neue Medium', Arial, sans-serif; font-size:17px; color:#707070;\">Microsoft \u5e10\u6237<\/td><\/tr>\r\n      <tr><td id=\"i2\" style=\"padding:0; font-family:'Segoe UI Light', 'Segoe UI', 'Helvetica Neue Medium', Arial, sans-serif; font-size:41px; color:#2672ec;\">\u9a8c\u8bc1\u4f60\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740<\/td><\/tr>\r\n      <tr><td id=\"i4\" style=\"padding:0; padding-top:25px; font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size:14px; color:#2a2a2a;\">\u8981\u5b8c\u6210\u4f60\u7684 Microsoft \u5e10\u6237\u7684\u8bbe\u7f6e\uff0c\u6211\u4eec\u53ea\u9700\u786e\u4fdd\u8fd9\u662f\u4f60\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002<\/td><\/tr>\r\n      <tr><td style=\"padding:0; padding-top:25px; font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size:14px; color:#2a2a2a;\">\u8981\u9a8c\u8bc1\u7535\u5b50\u90ae\u4ef6\u5730\u5740\uff0c\u8bf7\u4f7f\u7528\u6b64\u5b89\u5168\u4ee3\u7801: <span style=\"font-family:'Segoe UI Bold', 'Segoe UI Semibold', 'Segoe UI', 'Helvetica Neue Medium', Arial, sans-serif; font-size:14px; font-weight:bold; color:#2a2a2a;\">141896<\/span><\/td><\/tr>\r\n      <tr><td id=\"i6\" style=\"padding:0; padding-top:25px; font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size:14px; color:#2a2a2a;\">\u5982\u679c\u4f60\u6ca1\u6709\u8bf7\u6c42\u6b64\u4ee3\u7801\uff0c\u53ef\u653e\u5fc3\u5ffd\u7565\u8fd9\u5c01\u7535\u5b50\u90ae\u4ef6\u3002\u522b\u4eba\u53ef\u80fd\u9519\u8bef\u5730\u952e\u5165\u4e86\u4f60\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002<\/td><\/tr>\r\n      <tr><td style=\"padding:0; padding-top:25px; font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size:14px; color:#2a2a2a;\">\u8c22\u8c22!<\/td><\/tr>\r\n      <tr><td id=\"i8\" style=\"padding:0; font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif; font-size:14px; color:#2a2a2a;\">Microsoft \u5e10\u6237\u56e2\u961f<\/td><\/tr>\r\n<\/table>\r\n<div lang=\"zh-cn\" style=\"margin-top:20px;margin-bottom:10px;\"><a class=\"link\" href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkId=521839\">\u9690\u79c1\u58f0\u660e<\/a><div style=\"margin-top:10px;\">Microsoft Corporation, One Microsoft Way, Redmond, WA 98052<\/div><\/div><\/body>\r\n<\/html>"
    }
}
上一页
删除邮箱
Built with