---
agent:
  instructions: "Search Greenbar's public pages and docs by keyword. A result has every word you give. Results are returned in Markdown."
  endpoint: "https://usegreenbar.com/.well-known/search?q={query}"
  method: "GET"
---

# Mattermost alerts

> Post alerts to a Mattermost channel with an incoming webhook.

## Add a Mattermost channel

*Available on Paid plans*

Mattermost posts the alert through an incoming webhook on your server. Open Integrations, add an incoming webhook and copy its URL. After saving, only the end of the URL is shown.

1. In Mattermost, add an incoming webhook and copy its URL.
2. Open Alerts. Under Add channel, set Type to Mattermost.
3. Paste the URL into Mattermost webhook URL.
4. Choose Add channel.

![The Add channel form with Type set to Mattermost and Mattermost webhook URL set to https://example.com/hooks/demo. The SMS (Coming soon) question is under Type, and Add channel is at the bottom.](https://usegreenbar.com/docs/screenshots/alerts-add-mattermost-light.png?v=09cc424f25a3)

*A Mattermost incoming webhook on example.com.*

The URL has to be https, and the path has to end with /hooks/ and an id. Any public host is allowed, including a port. A private or local address is refused, the same way a monitor URL is. The check runs again when the alert is sent. Choose Replace URL and New Mattermost webhook URL to change it. Send test is described on How alerts work.

### When it fails

**What you see if a Mattermost URL cannot be saved**

| What you see | Why | What to change |
| --- | --- | --- |
| `Enter the webhook URL` | The value is not a URL. | Paste the webhook URL. |
| `Use the Mattermost incoming webhook URL (https://your-server/hooks/…)` | The path is not an incoming webhook. | Copy the URL from Integrations. |
| The message starts with `Webhook URL rejected:` | The host is not a public address. | Use the public address of your Mattermost server. |
