GET {{baseUrl}}/emails/mailboxes/:email/messages/:messageId?format=metadata&metadataHeaders=<string>
Retrieves the specified message. Scopes: Rate Limit Label: Not supported in Gov cluster mail:read
LIGHT
Body
PARAM
Key | Datatype | Required | Description |
format
|
string | The format to return the message with. | |
metadataHeaders
|
string | When requested format is metadata, only include headers specified in this query parameter. |
HEADERS
Key | Datatype | Required | Description |
Accept
|
string |
RESPONSES
status OK
{
"id": "<string>",
"threadId": "<string>",
"labelIds": [
"<string>",
"<string>"
],
"snippet": "<string>",
"historyId": "<string>",
"internalDate": "<string>",
"expiration": "<string>",
"lastMoved": "<string>",
"sendTime": "<string>",
"userScheduled": "<boolean>",
"manifest": "<string>",
"originalMime": "<string>",
"payload": {
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"size": "<integer>",
"data": "<string>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
}
]
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
}
]
}
]
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
}
]
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
},
"parts": [
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
},
{
"partId": "<string>",
"mimeType": "<string>",
"filename": "<string>",
"headers": [
{
"name": "<string>",
"value": "<string>"
},
{
"name": "<string>",
"value": "<string>"
}
],
"body": {
"attachmentId": "<string>",
"data": "<string>",
"size": "<integer>"
}
}
]
}
]
}
]
},
"sizeEstimate": "<integer>",
"raw": "<string>"
} |
ENDPOINTS