Get message information
Returns details of a specific message. By default text content is not included, use textType value to force retrieving text
Request
- Base URL: https://your-emailengine-host
- URL: https://your-emailengine-host/v1/account/{account}/message/{message}
- Auth: HTTP bearer
Path parameters
Unique identifier for the email account
Message ID
Query parameters
Max length of text content
Which text content to return, use * for all. By default text content is not returned.
Shorthand option to fetch and preprocess HTML and inline images
If true, then fetches attached images and embeds these in the HTML as data URIs. Not set means false
If true, then pre-processes HTML for compatibility
If true, then marks unseen email as seen while returning the message
Headers
Request timeout in milliseconds. Raises the command timeout above the EENGINE_TIMEOUT default for a long-running request; a value below the default has no effect
Response
Returns the message envelope and structure. Text content is only included when requested.
Example response
{
"id": "AAAAAgAACrI",
"uid": 12345,
"emailId": "1278455344230334865",
"threadId": "1694936993596975454",
"path": "INBOX",
"date": "2021-03-22T13:13:31.000Z",
"unseen": true,
"flagged": true,
"size": 1040,
"subject": "What a wonderful message",
"from": {
"name": "From Me",
"address": "sender@example.com"
},
"sender": {
"name": "From Me",
"address": "sender@example.com"
},
"to": [
{
"name": "Some Name",
"address": "user@example.com"
}
],
"cc": [
{
"name": "Some Name",
"address": "user@example.com"
}
],
"bcc": [
{
"name": "Some Name",
"address": "user@example.com"
}
],
"replyTo": [
{
"name": "Some Name",
"address": "user@example.com"
}
],
"messageId": "<test123@example.com>",
"inReplyTo": "<7JBUMt0WOn+_==MOkaCOQ@mail.gmail.com>",
"flags": [
"\\Seen"
],
"labels": [
"\\Important"
],
"attachments": [
{
"id": "AAAAAgAACrIyLjI",
"contentType": "image/gif",
"encodedSize": 48,
"embedded": true,
"inline": true,
"contentId": "<unique-image-id@localhost>",
"filename": "image.png",
"method": "REQUEST"
}
],
"headers": {
"from": [
"From Me <sender@example.com>"
],
"subject": [
"What a wonderful message"
]
},
"text": {
"id": "AAAAAgAACqiTkaExkaEykA",
"encodedSize": {
"plain": 1013,
"html": 1013
},
"plain": "Hello from myself!",
"html": "<p>Hello from myself!</p>",
"webSafe": true
},
"relatedMessageId": "<original@example.com>",
"preview": "Hello, here is the report you asked for",
"category": "primary",
"specialUse": "\\Sent",
"messageSpecialUse": "\\Sent"
}Changes
No recorded changes to this operation across all 1 revision of this API.