Actions17
- Email Actions
- Mailbox Actions
- Thread Actions
Email → Add Label
AI-generatedSummary
Add a label (mailbox) to a specified email identified by its ID.
Inputs
- Authentication — Selects the authentication method to use (OAuth2, Basic Auth, or Bearer Token).
- Email ID (required) — The unique identifier of the email to which the label will be added.
- Label (required) — The mailbox ID representing the label to add to the email; options are dynamically loaded from your mailboxes.
Output shape
a single record containing the result of the label addition operation (JMAP Email/set response object).
Returns the raw response from the JMAP Email/set API method indicating success or failure of adding the label. Errors during the operation will throw a NodeOperationError.
Examples
Example 1: Add 'Important' label to a specific email
Set 'Email ID' to the target email's ID and 'Label' to the mailbox ID of the 'Important' label.