Actions8
- Message Actions
- Thread Actions
Message → Add Label
AI-generatedSummary
Adds the specified Gmail labels to a message in the delegated mailbox by calling Gmail’s message modify endpoint. Supply the message ID and one or more comma-separated label names or IDs, along with the service account credentials and delegated email used to authorize access.
Inputs
- Service Account Email (required) — Email address of the Google service account used to authorize the request.
- Private Key (required) — Private key for the service account.
- Delegated Email (required) — Gmail mailbox to access through service account delegation.
- Message ID (required) — ID of the Gmail message to update.
- Label Names or IDs (required) — Comma-separated Gmail label names or IDs to add, such as INBOX, UNREAD, or Label_1.
Output shape
A single item containing the Gmail API response for the modified message.
The operation runs once for each incoming item and pairs each result with its input item. Authorization or API errors are thrown unless the workflow is configured to continue on fail, in which case an error item is returned.