Actions8
- Message Actions
- Thread Actions
Thread → Add Label
AI-generatedSummary
Adds one or more Gmail labels to a thread by calling Gmail’s thread modify endpoint. Authenticate with a service account and delegated mailbox, then provide the thread ID and comma-separated label names or IDs.
Inputs
- Service Account Email (required) — Service account email used to obtain a Google access token.
- Private Key (required) — Service account private key.
- Delegated Email (required) — Gmail mailbox to access by impersonation.
- Thread ID (required) — ID of the Gmail thread to modify.
- Label Names or IDs (required) — Comma-separated labels to add, such as INBOX, UNREAD, or Label_1. The node trims whitespace around each value.
Output shape
A single item containing the Gmail API thread response as JSON.
The operation adds labels to the thread and returns the response from Gmail’s modify endpoint. Each output item is paired with its corresponding input item; with Continue On Fail enabled, errors are returned as an item containing an error field.