Curl a message to Microsoft Teams
TL;DR
- create a connector of type: ‘incoming webhook’ to the teams channel you want to post to and copy the generated url
- create a curl command
- view your teams message
Create the connector (aka webhook)
-
select the channel you want to create a connector for:
-
add an ‘incoming webhook’:
-
click add:
-
name the connector (Note this name will appear in teams as the message sender)
-
click ‘create’:
-
copy the generated connector url:
Create the Curl command
Result
Thanks to my colleague Stu for the inspiration for this post
Read other posts