Skip to content

Macro Block

A block of macro content. Each type takes its own fields:

  • paragraph, heading and subheading: text, and optionally align.
  • unorderedList and orderedList: items.
  • code: text.
  • button: text and linkUrl.
  • image: url, and optionally width, height and linkUrl.
  • video: provider and id.

Paragraph and list text can include the inline tags <b>, <i>, <u>, <s>, <code>, <a href="..."> and <br>, and placeholders such as {{first_name | fallback: "there"}}. A malformed placeholder returns a 422.

typestringrequired

The type of block.

Enum:"paragraph""heading""subheading""unorderedList""orderedList""code""button""image""video"
Example:"paragraph"
textstring

The text of the block.

Example:"Thanks for getting in touch."
alignstring

The alignment of the block's text.

Enum:"left""center""right""justify"
Example:"left"
itemsarray of strings

The items of the list.

Example:
[ "Sign out", "Clear your cache", "Sign back in" ]
linkUrlstring

The URL the button or image links to.

Example:"https://help.example.org/contact"
urlstring

The URL of the image. Images from some hosts aren't accepted.

Example:"https://images.example.org/reset-password.png"
widthinteger

The width of the image in pixels.

Example:600
heightinteger

The height of the image in pixels.

Example:400
providerstring

The video provider, such as youtube, vimeo, wistia or loom.

Example:"youtube"
idstring

The unique identifier for the video at its provider.

Example:"a1B2c3D4e5F"
{ "type": "paragraph", "text": "Thanks for getting in touch.", "align": "left", "items": [ "Sign out", "Clear your cache", "Sign back in" ], "linkUrl": "https://help.example.org/contact", "url": "https://images.example.org/reset-password.png", "width": 600, "height": 400, "provider": "youtube", "id": "a1B2c3D4e5F" }