get_email
Read one email with its recipients, body and attachment metadata. The body returns at most 50,000 characters, and bodyTruncation reports where each part continues. Use get_email_body to read the rest.
Read one email with its recipients, body and attachment metadata. The body returns at most 50,000 characters, and bodyTruncation reports where each part continues. Use get_email_body to read the rest.
Permissions
Required capabilities: mail.read.
Inputs
| Name | Required | Type | Details |
|---|---|---|---|
accountId | No | string or null | Account to operate on. Optional when exactly one account is connected. Minimum length: 1. Maximum length: 512. |
messageId | Yes | string | Minimum length: 1. Maximum length: 512. |
includeHeaders | No | boolean or null | Include Message-ID, References, In-Reply-To and other threading headers |
bodyFormat | No | text or html or both or none or null | None |
{
"type": "object",
"properties": {
"accountId": {
"description": "Account to operate on. Optional when exactly one account is connected.",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 512
},
{
"type": "null"
}
]
},
"messageId": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"includeHeaders": {
"description": "Include Message-ID, References, In-Reply-To and other threading headers",
"type": [
"boolean",
"null"
]
},
"bodyFormat": {
"anyOf": [
{
"type": "string",
"enum": [
"text",
"html",
"both",
"none"
]
},
{
"type": "null"
}
]
}
},
"required": [
"messageId"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Last updated