Actions26
Label → Create
AI-generatedSummary
Creates a new Gmail label with the specified name and visibility options.
Inputs
- Name (required) — The name of the label to create.
- Options.Label List Visibility — Visibility of the label in the label list in the Gmail web interface. Options: Hide (labelHide), Show (labelShow), Show If Unread (labelShowIfUnread). Default: Show (labelShow).
- Options.Message List Visibility — Visibility of messages with this label in the message list in the Gmail web interface. Options: Hide (hide), Show (show). Default: Show (show).
Output shape
object
Returns the label object as provided by the Gmail API after creation, containing at least id, name, labelListVisibility, messageListVisibility, and type.
Examples
Example 1: Create a label named 'Invoices' that is visible in both label and message lists.
Name: 'Invoices', Options.Label List Visibility: Show, Options.Message List Visibility: Show