BHMailer HTTP API接口文档
  1. 邮件
BHMailer HTTP API接口文档
  • 文档说明
  • 基础
    • 获取API基本信息
      GET
    • 获取邮箱账号分组列表
      GET
    • 获取运行结果
      GET
  • 邮箱账号
    • 获取一个邮箱账号
      GET
    • 获取邮箱账号列表
      GET
    • 设置邮箱账号
      GET
    • 删除邮箱账号
      GET
  • 邮箱文件夹
    • 获取邮箱文件夹列表
      GET
    • 获取文件夹列表下一页
      GET
  • 邮件
    • 启动接收新邮件
      GET
    • 接收并查找指定邮件
      GET
    • 查找指定邮件
      GET
    • 获取文件夹邮件列表
      GET
    • 获取所有邮件列表
      GET
    • 获取邮件列表下一页
      GET
    • 获取邮件详情
      GET
    • 获取邮件原文
      GET
    • 截取邮件内容
      GET
    • 移动邮件到指定文件夹
      GET
    • 设置邮件阅读状态
      GET
    • 删除邮件
      GET
    • 发送邮件
      GET
  1. 邮件

获取所有邮件列表

内地服务器
https://bsh.bhdata.com:30015
内地服务器
https://bsh.bhdata.com:30015
GET
/bhmailer/mailMessages
获取所有邮件列表。此接口获取所有文件夹的邮件,不分文件夹。

请求参数

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://bsh.bhdata.com:30015/bhmailer/mailMessages?email=disqvlwac@mailxw.com&select&top=&uid=&sign='

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 0,
    "data": {
        "value": [
            {
                "id": "e935d92b253042e7886c7efd02672345",
                "createdDateTime": 1754562735818,
                "receivedDateTime": "2025-08-07 18:32:15",
                "hasAttachments": false,
                "subject": "test",
                "folderId": "4258a366913f400d8bd62c78f31f0605",
                "isRead": true,
                "isFull": true,
                "sender": "aa-cc<bhdata@126.com>",
                "mailTo": "usksufnny@mailxw.com",
                "mailCC": "",
                "size": 1055,
                "attachments": ""
            },
            {
                "id": "4c9d409b2e654f84bd707cdb37bd5b1d",
                "createdDateTime": 1754562692700,
                "receivedDateTime": "2025-08-07 18:31:32",
                "hasAttachments": false,
                "subject": "test",
                "folderId": "4258a366913f400d8bd62c78f31f0605",
                "isRead": true,
                "isFull": true,
                "sender": "aa-cc<bhdata@126.com>",
                "mailTo": "usksufnny@mailxw.com",
                "mailCC": "",
                "size": 1055,
                "attachments": ""
            },
            {
                "id": "8e4234e9f7574076a15a2929ce2f8445",
                "createdDateTime": 1754101718405,
                "receivedDateTime": "2025-08-02 10:28:38",
                "hasAttachments": false,
                "subject": "te66788",
                "folderId": "4258a366913f400d8bd62c78f31f0605",
                "isRead": true,
                "isFull": true,
                "sender": "aa-cc<bhdata@126.com>",
                "mailTo": "usksufnny@mailxw.com",
                "mailCC": "",
                "size": 1062,
                "attachments": ""
            },
            {
                "id": "9D80C8DD1D3E5BE38CA32D7C5A0D3969",
                "createdDateTime": 1755139015555,
                "receivedDateTime": "2025-08-01 19:06:23",
                "hasAttachments": false,
                "subject": "test",
                "folderId": "9311980839f54f34a37cbf6ecd48b866",
                "isRead": false,
                "isFull": false,
                "sender": "2025-07-14 16:05:19 nelsonnheagzt@outlook.de<usksufnny@mailxw.com>",
                "mailTo": "usksufnny@mailxw.com",
                "mailCC": "bhdata@126.com",
                "size": 1578,
                "attachments": ""
            },
            {
                "id": "2a0fde9e87974c0eb9acd7f188320cdb",
                "createdDateTime": 1754044447783,
                "receivedDateTime": "2025-08-01 18:34:07",
                "hasAttachments": false,
                "subject": "3567890",
                "folderId": "4258a366913f400d8bd62c78f31f0605",
                "isRead": true,
                "isFull": true,
                "sender": "aa-cc<bhdata@126.com>",
                "mailTo": "usksufnny@mailxw.com",
                "mailCC": "",
                "size": 1062,
                "attachments": ""
            },
            {
                "id": "a2ac2d6a13d045c19f8b67ebc4987769",
                "createdDateTime": 1754043598690,
                "receivedDateTime": "2025-08-01 18:19:58",
                "hasAttachments": false,
                "subject": "3567890111",
                "folderId": "4258a366913f400d8bd62c78f31f0605",
                "isRead": true,
                "isFull": true,
                "sender": "aa-cc<bhdata@126.com>",
                "mailTo": "usksufnny@mailxw.com",
                "mailCC": "",
                "size": 1065,
                "attachments": ""
            },
            {
                "id": "0d6fb5b9b23c48d1ba2db62de5714edb",
                "createdDateTime": 1754039355657,
                "receivedDateTime": "2025-08-01 17:09:15",
                "hasAttachments": false,
                "subject": "67890",
                "folderId": "4258a366913f400d8bd62c78f31f0605",
                "isRead": true,
                "isFull": true,
                "sender": "aa-cc<bhdata@126.com>",
                "mailTo": "usksufnny@mailxw.com",
                "mailCC": "",
                "size": 1052,
                "attachments": ""
            },
            {
                "id": "1cc7ac87ca9543559b7e8d04d21ddf6e",
                "createdDateTime": 1753516174065,
                "receivedDateTime": "2025-07-26 15:49:34",
                "hasAttachments": false,
                "subject": "Vi bruker våre egne og informasjonskapsler fra",
                "folderId": "4258a366913f400d8bd62c78f31f0605",
                "isRead": true,
                "isFull": true,
                "sender": "aa-cc<bhdata@126.com>",
                "mailTo": "test3@diyxt.cn",
                "mailCC": "",
                "size": 2233,
                "attachments": ""
            },
            {
                "id": "b3f72c4d557848aeb1f29ac2607fbd2c",
                "createdDateTime": 1753500418450,
                "receivedDateTime": "2025-07-26 11:26:58",
                "hasAttachments": false,
                "subject": "Sandi aplikasi harus diperbarui",
                "folderId": "4258a366913f400d8bd62c78f31f0605",
                "isRead": true,
                "isFull": true,
                "sender": "aa-cc<bhdata@126.com>",
                "mailTo": "test3@diyxt.cn",
                "mailCC": "",
                "size": 1832,
                "attachments": ""
            },
            {
                "id": "b914ee092cc543f6b9d22c360b519991",
                "createdDateTime": 1753413803123,
                "receivedDateTime": "2025-07-25 11:23:23",
                "hasAttachments": false,
                "subject": "tttttt",
                "folderId": "4258a366913f400d8bd62c78f31f0605",
                "isRead": true,
                "isFull": true,
                "sender": "aa-cc<bhdata@126.com>",
                "mailTo": "test3@diyxt.cn",
                "mailCC": "",
                "size": 1055,
                "attachments": ""
            }
        ],
        "@odata.nextLink": "/fetchMessages/500d3a779ed94fd88ea7604f21f8add1"
    }
}
修改于 2025-08-15 05:16:19
上一页
获取文件夹邮件列表
下一页
获取邮件列表下一页
Built with