Get message list
POST
/v1/message/list- For Scale version requests to this interface, please use the dedicated server address. Reference documentation: https://docs.getmx.com/docs/domain-email/operation/open#api-request-address
请求参数
Token generated by the management backend
Email folder, through the /v1/message/folder/list endpoint. e.g. Inbox. Note: Inbox for incoming messages, Drafts for drafts, Sent for sent messages, Deleted Items for deleted emails.
Mail ID (can be obtained from the GetMX management backend or through the /v1/mail/list endpoint; the 'id' field is the 'mail_id').
Start time
End time, note: The API time selection granularity is by day. To select the current day, please add one day to the date. For example, if 'end_time' is set to 2021-05-01, it represents 2021-05-01 00:00:00. To request data for 2021-05-01, set it to 2021-05-02.
Page
Number of entries per page (maximum of 20)
Recipient email, suitable for mail collection features, e.g. to@mail.com
Filter by subject
1 flagged, -1 unflagged, 0 all
1 seen, -1 unseen, 0 all
示例代码
Responses
{
"code": 0,
"msg": "string",
"data": {
"list": [
{
"body": "string",
"from": "string",
"id": "string",
"subject": "string",
"time": "string",
"timestamp": 0,
"to": "string"
}
],
"total": 0
}
}