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 aSignal<GmailLabel[]>. Each label contains:
Use
labelId for durable references and for labelIds search filters.
Display names are intended for people and can be renamed.