Skip to main content
listLabels returns every system and user label in the connected Gmail mailbox. Use it to discover immutable label IDs before searching, modifying, updating, or deleting labels.

Example

automations/list-gmail-labels.automation.ts

Inputs

The account can also be supplied by a compatible Signal.

Output

Returns a Signal<GmailLabel[]>. Each label contains:
Gmail does not supply every optional field for every label. For example, system labels and user labels can expose different visibility, color, and count metadata.
Use labelId for durable references and for labelIds search filters. Display names are intended for people and can be renamed.