download_attachment
Get metadata and a resource link for one attachment. With inline, the result also includes the content. For a PDF, inline adds extracted text, and pages returns the text of a page range such as 201-400. The size limit is 10 MB. To keep an attachment as a file, or to get one over the limit, save it with save_attachment.
Get metadata and a resource link for one attachment. With inline, the result also includes the content. For a PDF, inline adds extracted text, and pages returns the text of a page range such as 201-400. The size limit is 10 MB. To keep an attachment as a file, or to get one over the limit, save it with save_attachment.
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. |
attachmentId | Yes | string | Opaque attachment ID returned by message metadata Minimum length: 1. Maximum length: 512. |
inline | No | boolean or null | None |
pages | No | string or null | PDF page or page range to read as text, such as 201-400 |
{
"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
},
"attachmentId": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "Opaque attachment ID returned by message metadata"
},
"inline": {
"type": [
"boolean",
"null"
]
},
"pages": {
"description": "PDF page or page range to read as text, such as 201-400",
"anyOf": [
{
"type": "string",
"pattern": "^[1-9]\\d{0,5}(-[1-9]\\d{0,5})?$",
"description": "PDF page or page range to read as text, such as 201-400"
},
{
"type": "null"
}
]
}
},
"required": [
"messageId",
"attachmentId"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Last updated
delete_label
Delete a Gmail label or an Outlook category from a mailbox. In Gmail, the label is removed from its messages, which stay in the mailbox, and a label with nested labels can't be deleted until they are. Gmail system labels such as Inbox and Starred can't be deleted. In Outlook, the category leaves the mailbox's category list, but messages that have it keep its name. Call list_labels first to find the label ID.
forward_email
Forward an email to new recipients with a "Fwd:" subject and the quoted original. The original attachments are included unless includeAttachments is false, and an optional comment appears above the forwarded content. Repeating a successful forward with the same idempotencyKey and arguments returns the saved result instead of sending again. Add sendAt to schedule the forward instead of sending it now. Scheduled mail is delivered by fluxmail serve or fluxmail scheduled run using the same store. Stdio does not deliver schedules. Overdue mail may send when a worker starts.