Gmail Get Custom

Get one or many Messages/Threads and manage labels with token caching

Thread → Remove Label

AI-generated

Summary

Remove the specified labels from a Gmail thread in the delegated mailbox. The node sends the thread ID and comma-separated label names or IDs to Gmail’s thread modify endpoint and returns Gmail’s response.

Inputs

  • Service Account Email (required) — Service account email used to obtain an access token.
  • Private Key (required) — Private key for the service account.
  • 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 remove, such as INBOX, UNREAD, or Label_1. Each entry is trimmed and sent as a label ID.

Output shape

A list containing one item with Gmail’s thread-modify response in its JSON field.

The operation processes each incoming item and pairs its result with that item. Errors stop execution unless Continue On Fail is enabled, in which case an error item is returned.

Examples

Example 1: Remove INBOX and UNREAD from a thread

Provide service account credentials, the delegated mailbox, a thread ID, and INBOX, UNREAD as the labels.

Links

Discussion