Footer

View as Markdown

Messages can have a footer, which is the text that displays at the bottom of a message.

The footer can consist of an image, text, and or a timestamp. This message type also supports Markdown and @mentions.

To add a footer to your message, the parent object in the body array must be of type section.

Inside the sections array you can add your message type.

  • footer_icon: an image, pass in an image url
  • footer: the text to display
  • ts: a date in milliseconds (Unix timestamp)

A recent timestamp displays in relative time (30 minutes ago). If not recent, it displays in MM/DD/YYYY HH:MM AM/PM format.

Example

Example

JSON example

{
  "head": {
    "text": "I am a header",
    "sub_head": {
      "text": "I am a sub header"
    }
  },
  "body": [
    {
      "type": "section",
      "sections": [
        {
          "type": "message",
          "text": "I am a message with text"
        }
      ],
      "footer": "I am a footer",
      "footer_icon": "https://d24cgw3uvb9a9h.cloudfront.net/static/93516/image/new/ZoomLogo.png",
      "ts": 1560446471819
    }
  ]
}