Kingsoft OfficeWPS 365 企业协作开放 API
GET/v7/mail_messages/search
高级搜索邮件
高级搜索邮件,支持多条件组合。仅支持用户登录后访问自己的邮箱。
通过 WPS 365 官方 OpenAPI(v7)管理通讯录与组织、云文档、多维表/智能表格、消息、会议、日历、邮件、待办、审批与事件订阅;官方机器契约为 open.wps.cn 发布的 OpenAPI 3.0.0(827 个 Endpoint / 3,119 个 Schema)。企业数据为私有业务数据,Pontx 不代理、缓存或聚合,调用方使用本地 SDK/CLI 直连。
请求
- operationId
mailMessageSearch- 服务器
https://openapi.wps.cn- 认证
- app, delegated
请求参数
mailbox_ids
querystring必填
mailbox ids。
example content
start_time
queryintegerint64
开始时间(RFC3339)。
1
end_time
queryintegerint64
结束时间(RFC3339)。
2
folders
querystring
folders。
example content
exclude_folder_names
querystring
exclude folder names。
example content
filter
querysearch_filter
过滤条件。
has_attachment
queryboolean
has attachment。
true
category_id
querystring
category id。
example-id-0123456789
from
querystring
from。
example content
to
querystring
to。
example content
subject
querystring
subject。
example content
body
querystring
body。
example content
attachment
querystring
attachment。
example content
keyword
querystring
搜索关键词。
example-keyword
page_size
queryintegerint64
每页返回条数。
1
page_token
querystring
分页起始令牌,不透明,应原样回传。
example-page-token
priority
querystring
priority。
example content
响应
200
advance_search_mail_messages_resp_bodyapplication/json
请求成功。
字段: data
default
unknownapplication/json
上游服务返回该状态。
{
"data": {
"items": {
"bcc_recipient": {},
"body_preview": "example content",
"cc_recipient": {},
"ctime": 1,
"folder_id": "example-id-0123456789",
"from": {},
"has_attachments": true,
"importance_flag": 1
},
"next_page_token": "example-page-token"
}
}