Can i post rich-text message via the incoming webhook in teams?

Welcome to Programming Tutorial official website. Today - we are going to cover how to solve / find the solution of this error Can i post rich-text message via the incoming webhook in teams? on this date .

According to microsoft docs, I can post a plain text to teams channel:

curl -H "Content-Type: application/json" -d "{"text": "Hello World"}" <YOUR WEBHOOK URL>

can i post a rich-text message, such as bold text?

Answer

Yes. HTML and markdown is supported in the incoming webhooks. try these:

curl -H "Content-Type: application/json" -d "{"text": "Hello <b>World</b>"}" <YOUR WEBHOOK URL>
curl -H "Content-Type: application/json" -d "{"text": "Hello **World**"}" <YOUR WEBHOOK URL>