Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Call API from maintenance event

Leo Chan June 28, 2022

Is it possible to post an API after a maintenance is created?

For instance, we would like to post a slack notification when a maintenance is created, I am having trouble finding it.

The only way I can see is using the active maintenance. Save it then compare it when a new maintenance is added - 

https://developer.statuspage.io/#operation/getPagesPageIdIncidentsActiveMaintenance

1 answer

1 accepted

0 votes
Answer accepted
John M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 29, 2022

Hi Leo,

You actually don't even need the API to send a Slack notification when a maintenance window is created. Simply go to your live Statuspage, click the "Subscribe to updates" button, click on the "Slack" tab and click "Subscribe via slack" and you can have notifications sent to a Slack channel.

Then, when you schedule maintenance, just be sure the "send notifications" checkbox is checked. 

Leo Chan July 11, 2022

Hi @John M ,

Sorry for the late reply as I was out of office. This is helpful -

I got error when I tried to add a webhook URL, "Token can't be blank". Is this because legacy token not supported by Slack anymore?


https://support.atlassian.com/statuspage/docs/set-up-a-slack-integration/

Leo Chan July 11, 2022

Sorry, I thought I already added Statuspage Team Notifications in Slack app directory but I missed it. Thanks again!

Like John M likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events