Get message detail
POST
/v1/message/detail- 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
请求参数
Body Params multipart/form-data
token
string
required
Token generated by the management backend
Example:
{{token}}
folder
string
required
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.
Example:
Inbox
mail_id
string
required
Mail ID (can be obtained from the GetMX management backend or through the /v1/mail/list endpoint; the 'id' field is the 'mail_id').
Example:
12345678
message_id
string
required
Message ID (obtainable through the /v1/message/list endpoint; the 'id' field corresponds to 'message_id')
Example:
12345678
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
code
integer
required
msg
string
required
data
object
required
list
array [object {9}]
required
total
integer
required
Example
{
"code": 0,
"msg": "string",
"data": {
"list": [
{
"body": "string",
"from": "string",
"id": "string",
"subject": "string",
"time": "string",
"timestamp": 0,
"to": "string",
"plain_text": "string",
"attachments": "string"
}
],
"total": 0
}
}
Last modified: 1 个月前