"action".
When to use:
- Add call-to-action buttons (e.g., “Sign Up”, “View Order”, “Confirm Email”)
- Create clickable links within notifications
- Provide interactive elements that direct users to specific URLs
string
required
The label displayed on the button or link.
string
required
The target URL of the action. Clicking it sends the user to this URL.
string
A unique identifier for the action when it is executed. Useful for tracking and analytics.
string
The alignment of the action button. One of
"center", "left", "right", or "full". Defaults to "center".string
The background color of the action button. Any valid CSS color value (e.g.,
"#007bff", "rgb(0, 123, 255)").string
The visual style of the action. Defaults to
"button"."button": a filled button.background_coloris the fill."secondary": an outlined button.background_coloris the border and the label."tertiary": the quietest button.background_coloris the label."link": inline text rather than a button, and the only style that draws no button chrome.
background_color is a fill only for "button". Sending white with "secondary" asks for a white border and a white label, not a white button.boolean
When true, the action’s
href is not rewritten for click-through tracking, even when click-through tracking is enabled for the workspace.object
Region-specific content for localization. See the .
"link" renders inline text instead:
The Inbox reads the three buttons as a volume control rather than as email’s fill, outline, and rule.
"button" is the quiet default it has always drawn, and "tertiary" is the solid one.
Styled button
Customize the button appearance with colors and alignment:
- Email: filled, outlined, or underlined, following
style - Push: a clickable action button
- SMS: a clickable link
- Inbox: an interactive button whose weight follows
style