Skip to main content
gmail.listLabels returns every label in the connected mailbox, including immutable IDs for later actions.

Example

automations/list-gmail-labels.automation.ts

Inputs

Second argument { account } accepts a compatible signal.

Output

Returns Signal<GmailLabel[]>. Each label contains:
Gmail doesn’t 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.