> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rootly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mattermost

> Connect Mattermost to Rootly so responders can declare, manage, and coordinate incidents directly from Mattermost with channels and slash commands.

## Introduction

The Mattermost integration connects Rootly with your Mattermost workspace so responders can work from chat while Rootly keeps the incident record up to date.

This integration is best for teams that use Mattermost as a primary collaboration tool and want to manage incidents without constantly switching between Mattermost and the Rootly web app.

With the Mattermost integration, you can:

* Declare incidents directly from Mattermost with slash commands
* Automatically create a dedicated Mattermost channel for each incident
* Mitigate and resolve incidents from the incident channel
* Guide responders through a consistent incident workflow from chat
* Keep Rootly and Mattermost in sync during the incident lifecycle

## Before You Begin

Before setting up the integration, make sure you have:

* A Rootly account with permission to manage integrations
* Access to your Mattermost workspace
* Permission to create and configure an OAuth 2.0 application in Mattermost

You will need to register **both** of the following redirect URLs in Mattermost:

* `https://rootly.com/auth/mattermost/callback`\
  Used when an admin installs the Mattermost integration in Rootly

* `https://rootly.com/auth/sign_in_mattermost/callback`\
  Used when individual users connect their Mattermost account with `/incident connect`

## Installation

<Steps>
  <Step title="Create an OAuth 2.0 application in Mattermost" icon="key">
    In Mattermost, navigate to **Menu > Integrations**, then open **OAuth 2.0** and create a new OAuth application.

    <Frame caption="Menu > Integrations">
      <img src="https://mintcdn.com/rootly/EZBU89ISF00990Wy/images/integrations/mattermost-step-1.webp?fit=max&auto=format&n=EZBU89ISF00990Wy&q=85&s=cabe54b42224b79590ae4f1ef6957c61" alt="" width="868" height="1124" data-path="images/integrations/mattermost-step-1.webp" />
    </Frame>

    <Frame caption="OAuth 2.0">
      <img src="https://mintcdn.com/rootly/EZBU89ISF00990Wy/images/integrations/mattermost-step-2.webp?fit=max&auto=format&n=EZBU89ISF00990Wy&q=85&s=e4f362c549d78635335b52576dc427b5" alt="" width="862" height="869" data-path="images/integrations/mattermost-step-2.webp" />
    </Frame>

    <Frame caption="Configuration">
      <img src="https://mintcdn.com/rootly/EZBU89ISF00990Wy/images/integrations/mattermost-step-3.webp?fit=max&auto=format&n=EZBU89ISF00990Wy&q=85&s=ecf2acf4259dbff2676214f97b9de37a" alt="" width="885" height="795" data-path="images/integrations/mattermost-step-3.webp" />
    </Frame>
  </Step>

  <Step title="Add Rootly callback URLs" icon="link">
    In the Mattermost OAuth application, add both of the following redirect URLs:

    `https://rootly.com/auth/mattermost/callback`

    `https://rootly.com/auth/sign_in_mattermost/callback`

    The first URL is used when an admin installs the Mattermost integration in Rootly. The second is used when individual users connect their Mattermost account with `/incident connect`.
  </Step>

  <Step title="Copy the OAuth credentials into Rootly" icon="copy">
    After saving the OAuth application in Mattermost, copy the **client\_id** and **client\_secret** into the Mattermost integration settings in Rootly.

    <Frame>
      <img src="https://mintcdn.com/rootly/EZBU89ISF00990Wy/images/integrations/mattermost-step-4.webp?fit=max&auto=format&n=EZBU89ISF00990Wy&q=85&s=8d8cb08fdcb3c9817266393837519df2" alt="" width="862" height="274" data-path="images/integrations/mattermost-step-4.webp" />
    </Frame>
  </Step>
</Steps>

## Configuration

<Steps>
  <Step title="Open the Mattermost integration settings in Rootly" icon="sliders">
    In Rootly, navigate to **Configuration** > **Integrations** > **Mattermost** > **Configure**.

    <img src="https://mintcdn.com/rootly/jL2nQYfo_IMOD5x3/images/CleanShot2025-09-26at11.17.09.png?fit=max&auto=format&n=jL2nQYfo_IMOD5x3&q=85&s=8b628281d4b34f5bbaa09a0605f82f1d" alt="Mattermost integration settings" width="757" height="466" data-path="images/CleanShot2025-09-26at11.17.09.png" />
  </Step>

  <Step title="Review channel and incident creation settings" icon="gear">
    In the configuration panel, you can define how Rootly works with Mattermost during incident creation and response.

    Available options include:

    * **Channel title** for incident channels
    * Whether to **automatically create a Mattermost channel** when an incident is declared
    * Whether incident channels should always be **private**
    * Which fields appear in the **incident creation wizard**
    * Which incident events should be posted into the Mattermost channel, including:
      * Incident created
      * Incident mitigated
      * Incident resolved
      * Incident cancelled

    You can also control what data responders are asked to provide during incident creation so the Mattermost experience matches your team’s incident process.

    <img src="https://mintcdn.com/rootly/jL2nQYfo_IMOD5x3/images/CleanShot2025-09-26at11.18.57.png?fit=max&auto=format&n=jL2nQYfo_IMOD5x3&q=85&s=0a58859ee41453448cb8d3a31d896833" alt="Mattermost configuration options" width="872" height="1278" data-path="images/CleanShot2025-09-26at11.18.57.png" />
  </Step>
</Steps>

## Connect Your Mattermost Account

<Note>
  Each user who wants to manage incidents from Mattermost must complete this step.
</Note>

<Steps>
  <Step title="Run the connect command in Mattermost" icon="link">
    After the integration is installed, run `/incident connect` in Mattermost to start linking your Mattermost account to Rootly.
  </Step>

  <Step title="Open the authorization flow" icon="bolt">
    Rootly will respond with a bot message that includes a **Connect now** action.

    <img src="https://mintcdn.com/rootly/jL2nQYfo_IMOD5x3/images/CleanShot2025-09-26at10.52.57.png?fit=max&auto=format&n=jL2nQYfo_IMOD5x3&q=85&s=57b621efd9c5163b740c9cae8ec92233" alt="Mattermost connect prompt" width="493" height="190" data-path="images/CleanShot2025-09-26at10.52.57.png" />
  </Step>

  <Step title="Authorize access to complete the connection" icon="shield-check">
    Click **Connect now**, then click **Allow** to authorize access and finish linking your Mattermost account.

    <img src="https://mintcdn.com/rootly/jL2nQYfo_IMOD5x3/images/CleanShot2025-09-26at10.53.30.png?fit=max&auto=format&n=jL2nQYfo_IMOD5x3&q=85&s=a11dcd0b60608c13c8ada53d688513c6" alt="Mattermost authorize access" width="699" height="330" data-path="images/CleanShot2025-09-26at10.53.30.png" />

    Once connected, you are ready to manage incidents in Rootly through Mattermost.
  </Step>
</Steps>

## Managing Incidents from Mattermost

Once your Mattermost account is connected, you can use slash commands to declare incidents, update incident status, and move through the incident workflow directly from Mattermost.

### Declare an Incident

<Steps>
  <Step title="Declare an incident from Mattermost" icon="triangle-exclamation">
    To declare a new incident from Mattermost, use one of the following commands:

    * `/incident new`
    * `/incident create`
    * `/incident declare`

    <Note>
      You can run these commands in any Mattermost channel.
    </Note>

    Mattermost prompts you to enter the incident details.

    <img src="https://mintcdn.com/rootly/jL2nQYfo_IMOD5x3/images/CleanShot2025-09-26at11.08.52.png?fit=max&auto=format&n=jL2nQYfo_IMOD5x3&q=85&s=464860b88aa9a93a2b940968421dd711" alt="Create an incident from Mattermost" width="632" height="669" data-path="images/CleanShot2025-09-26at11.08.52.png" />

    When the incident is created:

    * A new incident is created in Rootly
    * A dedicated Mattermost channel can be created automatically, depending on your configuration
  </Step>
</Steps>

### Mitigate an Incident

<Step title="Mitigate an incident from Mattermost" icon="life-ring">
  To mark an incident as mitigated, run either of the following commands in the incident-specific Mattermost channel:

  * `/incident mitigate`
  * `/incident mitigated`

  <Note>
    These commands must be run from the Mattermost channel created for that incident.
  </Note>

  <img src="https://mintcdn.com/rootly/jL2nQYfo_IMOD5x3/images/CleanShot2025-09-26at11.12.10.png?fit=max&auto=format&n=jL2nQYfo_IMOD5x3&q=85&s=8f2c70c05eae46815d7214920d77ec59" alt="Mitigate an incident from Mattermost" width="589" height="455" data-path="images/CleanShot2025-09-26at11.12.10.png" />
</Step>

### Resolve an Incident

<Step title="Resolve an incident from Mattermost" icon="circle-check">
  To resolve an incident, run either of the following commands in the incident-specific Mattermost channel:

  * `/incident resolve`
  * `/incident resolved`

  <Note>
    These commands must be run from the Mattermost channel created for that incident.
  </Note>

  <img src="https://mintcdn.com/rootly/jL2nQYfo_IMOD5x3/images/CleanShot2025-09-26at11.13.08.png?fit=max&auto=format&n=jL2nQYfo_IMOD5x3&q=85&s=fce963dfc25abe23b24e33ab9b15623f" alt="Resolve an incident from Mattermost" width="585" height="447" data-path="images/CleanShot2025-09-26at11.13.08.png" />
</Step>

### View Available Commands

<Step title="View available Mattermost commands" icon="terminal">
  If you need a reminder of the available Mattermost commands, run:

  * `/incident help`

  This shows the current list of supported commands.

  <img src="https://mintcdn.com/rootly/jL2nQYfo_IMOD5x3/images/CleanShot2025-09-26at11.15.07.png?fit=max&auto=format&n=jL2nQYfo_IMOD5x3&q=85&s=12d72ae62e090432fe3b77924ffa4da6" alt="Mattermost incident help command" width="495" height="124" data-path="images/CleanShot2025-09-26at11.15.07.png" />
</Step>

## Uninstall

To remove the Mattermost integration, go to the integrations panel and select **Configure** > **Delete**.
