Mattermost, Inc.

Text Formatting - newline

I am trying to format messages in incoming webhooks. What is the sequence of characters to create a newline?

Thanks!

Hi zchef2k,

You can insert a newline by putting a \n in the message. If you’re just using curl, it would look like this:

curl -i -X POST -d 'payload={"text": "this is a\nnewline"}' URL