WebHooks: A way to integrate systems

For example, I’ve integrated StatusCake with our Slack communication channel.  When Status Cake needs to send a message that our website is down, it will email, SMS, and alert our Slack Channel #vship.

Incoming Webhooks are a simple way to post messages from external sources into Slack. They make use of normal HTTP requests with a JSON payload, which includes the message and a few other optional details described later.

Message Attachments (https://api.slack.com/docs/attachments) can also be used in Incoming Webhooks to display richly-formatted messages that stand out from regular chat messages.

I went into the Slack Admin panel and added custom WebHook, which generated this URL for me: https://hooks.slack.com/services/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.

Notifications from StatusCake to Slack

You can now set-up StatusCake to send notifications to one or more of your Slack Channels. To get started is easy – follow these easy steps:

Inside Slack:

  • Go to “Your Account”
  • On the new top menu select “Integrations”
  • Scroll down and find “Incoming Web-hooks”
  • Add a new incoming web hook / select the channel.
  • Copy the URL with the Token in

Inside StatusCake:

  • Go to ‘Account’ then ‘3rd Party’
  • In add New Service selection, select ‘Slack’
  • Insert your Token URL, and optionally type a channel name to send slack to
  • Save and then add this 3rd party service to any contact group of your choice

StatusCake Key Stats to Slack

We have also added the ability to query your StatusCake accounts key statistics right from inside Slack. No need to go to StatusCake every time you want to see what sites (if any) are down from your account. To get started with this –

Inside StatusCake:

  • Go to ‘Account’ then ‘3rd Party’
  • Scroll down and in the Pull Service URLs copy the StatusCake URL for Slack

Inside Slack:

  • Go to “Your Account”
  • On the new top menu select “Integrations”
  • Scroll down and find “Outgoing Web-hooks”
  • Add New Outgoing Web-hook
  • Optionally pick channel (or use “All”)
  • Pick your Twitter Word(s), We’d suggest something like “StatusCake”
  • Put the URL you copied from StatusCake in the URL(s) box

Now when you type “StatusCake” (or whatever trigger word you used) in a channel that you have set-up the hook to act on, you’ll get key statistics!