top of page

How to create Slack Webhooks

Updated: Jan 16, 2020

Today let me show you how to generate a slack webhook. Slack webhooks is a simple way to post messages from external sources into Slack. My steps to get slack webhook were as follow:

Step1) I created slack app by merging one of my created slack workspace at this URL: https://api.slack.com/apps


ree

Step2) go to “Incoming Webhooks” to create webhook.

ree

Step3) active incoming webhooks

ree

Step4) create new webbook to workspace or merge webhook to channel

ree

Step5) Then select a channel from your workspace.

ree

Step6)finally got webhook url to work with slack api.

ree

Step7) can sent test message to your channel by using curl.

Note: TDK572UAW/BLGRR1X6X/C0etNQsdetn06OH3qE9rqsPx used to push slack notification via Ansible slack module

$curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/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

PS: I deleted my webhook after this tutorial.

Thank You 😊


 
 
 

Recent Posts

See All
cisco csr1000v ios upgrade

Today Let me share about upgrading or downgrading ios using ansible. Original idea credit to eanylin (https://github.com/eanylin). I...

 
 
 

Comments


Subscribe Form

  • facebook
  • twitter
  • linkedin

©2019 by proximus. Proudly created with Wix.com

bottom of page