Skip to main content
The action element adds a clickable action to your notification. It renders as a button or a link, depending on the channel and styling options you choose. The type value is "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
Basic example
Fields
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_color is the fill.
  • "secondary": an outlined button. background_color is the border and the label.
  • "tertiary": the quietest button. background_color is 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 .
Examples and variants Styles The default style renders a filled button:
"link" renders inline text instead:
Each channel draws these as closely as its medium allows, so the three button styles are a hierarchy rather than a fixed set of pixels: 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:
With localization Localize action content and URLs:
With conditional logic Show different actions based on conditions:
Channel support Action elements are supported across all channels:
  • Email: filled, outlined, or underlined, following style
  • Push: a clickable action button
  • SMS: a clickable link
  • Inbox: an interactive button whose weight follows style