Mattermost incoming webhooks

Incoming webhooks let external systems post messages into Mattermost channels over HTTP. This page covers enabling them, limiting who can create them, protecting each URL as a credential, and building payloads that stay reliable.

On this page

How Mattermost incoming webhooks post messages from external systems

When a monitoring, ticketing or CI system needs to post into a Mattermost channel, incoming webhooks are the supported one-way method. The external system sends an HTTP POST with a JSON payload to a unique URL that is tied to one channel, and Mattermost posts the message there. The method does not read messages from the channel, so it cannot react to conversation. Compared with outgoing webhooks, slash commands and plugins, which receive or act on what users do in Mattermost, incoming webhooks only push content in. Decide early which systems need this one-way path, because anything that must respond to users belongs in one of the other mechanisms covered elsewhere in this group.

Confirm the webhook settings and the exact payload fields against the Mattermost documentation for the server version you run before you write any integration code. Admin console options that control whether incoming webhooks are enabled, and which roles may create them, have changed across releases, and the fields accepted in the JSON body (text, channel override, username, icon and attachments) should be checked in the same way. Start from the Mattermost server deployment planning documentation to confirm the server context, then read the integrations guidance for the version your organization has standardized on. Record the version you tested against, since the Mattermost server release cadence means the documented behavior can move between monthly releases.

Treat each webhook URL as a credential. Anyone who holds it can post to that channel without signing in, so store it in your secrets manager rather than in source repositories or CI variables that many people can read, and plan a rotation path for when a system is retired or a team member leaves. Give each external system its own webhook so that a leaked URL can be revoked without breaking the others. Ask your Mattermost administrator who may create webhooks in your environment, and limit that permission to a small group of channel owners. Finally, test in a non-production channel first, and check how your monitoring tools handle delivery failures, since a rejected or lost POST will not appear in the channel.

What you need before creating the first webhook

Before anyone creates an incoming webhook, the server version, the admin rights, the network path and the TLS setup need to be settled. Each card below covers one of these prerequisites, and the owner of the target channel should be named before the URL is issued.

Server version and release channel

Decide whether the server runs a monthly release or an Extended Support Release (ESR). Mattermost ships new server versions in binary form on the 16th of each month, and the ESR line has longer support, so the channel you choose sets how often the webhook must be retested. Mattermost v11.7 is the current ESR in the supplied release data, released on 2026-05-15 with support ending 2027-05-15. Confirm the channel your organization follows before you plan the integration.

Server release schedule

Admin account with webhook rights

Creating incoming webhooks depends on who is allowed to create them. Confirm that the person setting up the webhook has a team admin or system admin account on the target team, and check whether your server settings let team members create webhooks at all. Use a named administrator account for setup so the webhook can be traced to a responsible person, and record that person in the integration notes.

Network route from sender to server

The external system must reach the Mattermost server over HTTP or HTTPS on the address the webhook URL uses. Check outbound rules on the sending side, firewall and proxy rules between the two networks, and any DNS names the sender resolves. For a sender inside a restricted or air-gapped network, confirm the route is approved before you rely on it, because a webhook that cannot reach the server fails silently from the sender's point of view.

TLS certificate on the public URL

Webhook URLs carry a secret token in their path, so they should be served over HTTPS with a certificate that the sending system trusts. Confirm the certificate covers the exact hostname used in the webhook URL, that it is renewed before expiry, and that any internal certificate authority is trusted by the sender. A certificate mismatch or an expired certificate will break every integration that posts to that URL.

Deployment planning guide

Target channel with a named owner

Pick the channel that will receive the posts and name one owner who answers for its content. The owner decides who may post, what message types are expected, and whether the channel is public or private. Anyone holding the webhook URL can post into that channel, so the owner should approve the webhook before the URL is shared with the sending team.

Integration as a planned change

Treat the webhook as a planned change under your server upgrade process, not a one-off setting. Record the Mattermost version, the webhook owner, the channel and the sending system in your change log, and retest the integration after each server upgrade. A monthly release can change behavior that a webhook depends on, so the upgrade checklist should include a posting test.

Configure incoming webhooks in the order that keeps access controlled

This sequence turns incoming webhooks on only where needed, limits who can create them, and gives each sending system its own URL that can be checked and revoked. Each step ends with a test or check so the team knows the control works before any production system depends on it.

  1. Confirm the feature and plan level

    A Mattermost administrator confirms that incoming webhooks are enabled on the server and that the plan and deployment match the team's needs. Incoming webhooks are a standard capability, but the administrator should confirm the current setting in the System Console rather than assume it from a default. Record who owns the server configuration so later changes are traceable. Done means the administrator can open the integrations settings in the System Console and see the incoming webhook option, with the owner named in the change record.

  2. Enable incoming webhooks in System Console

    In the System Console, the administrator opens the integrations section and turns on incoming webhooks. Leave outgoing webhooks and other integration types off unless a separate, approved use case requires them, so the attack surface stays limited to what the team has reviewed. Check the setting also covers whether webhooks may override the username and icon of a post, since that affects how messages can be spoofed. Done means the setting is saved, and the administrator can see the change in the audit or configuration history.

  3. Choose who may create webhooks

    The administrator decides which roles may create incoming webhooks, and limits that right to a small group such as platform or integration owners rather than every member. Team and channel admins may need the right in their own scope, so the decision should match how the organization delegates. Confirm the permission with a test account that has only a standard member role: it should not be able to create a webhook from the channel integrations page. Done means a standard member sees no create option, and an authorized owner can open the form.

  4. Create one webhook per sender and channel

    An authorized owner creates a separate incoming webhook for each sending system and each target channel, with a clear display name that identifies the source, such as the monitoring tool or the ticketing system. Separate webhooks let the team rotate or disable one sender without affecting others, and they make the audit trail readable. Avoid reusing a single URL across many systems. Done means each webhook appears in the integrations list with its channel, creator and name recorded, and no two senders share a URL.

  5. Store the URL in the sender's secret store

    The owner copies the generated URL once and places it in the sending system's secret store, such as a vault or the platform's encrypted secrets, never in source code, tickets or chat. Anyone holding the URL can post to that channel, so treat it like a password. Record which system holds it and who can rotate it. Done means the URL is absent from configuration files and documents, and the sending system references it through a secret name that the owner can rotate.

  6. Send a test payload from the sender

    The integration owner sends a minimal test payload to the webhook from a non-production or controlled source, using the Slack-compatible JSON format the sender expects, with a text field and, if needed, attachments. Use a test channel first where possible. Done means the message appears in the expected channel. If the post fails, check the payload structure and confirm the URL was copied completely before changing any server setting.

  7. Confirm display name, icon and rejected requests

    The owner checks that the test message shows the expected display name and icon, and that any override the sender sets is accepted only if the server allows it. Then confirm the control works in the other direction: a request to a deleted, disabled or altered URL should be rejected, and a standard member should not be able to create or view another team's webhook. Record the results with the webhook name, channel and test date. Done means the expected post appears, a bad request fails, and the results are filed with the change record.

Why the webhook URL is the credential

An incoming webhook URL is the only thing a caller needs to post into a channel. There is no user login, no password prompt and no second factor at the moment of the request, so whoever holds the URL can post as the webhook to that one channel. The URL is therefore a bearer credential, and it should be stored, reviewed and rotated the same way as an API token. Before any webhook goes live, confirm which channel it targets, who can read the system that holds the URL, and whether the posted content could be misread as coming from a trusted person or system.

Rotation and regeneration are the operational controls you have. Plan for a regeneration step that you can run without waiting on the sending team, and record who owns each webhook and which system consumes it, so that a leak can be traced to a single integration. Test the procedure on a non-production channel first and confirm in your own environment that the old URL stops working once it is regenerated. Check the exact steps and the admin roles that may perform them against the current Mattermost documentation for your server version, because the menu locations and permissions can change between releases.

Ownership matters as much as the secret itself. A webhook created from a personal user account is tied to that person, so it can break or be reassigned when they change roles or leave, and its posts show that person's identity in the channel. A dedicated service account, with its own name, a documented owner and access only to the channels it must post to, separates the integration from any individual and makes an audit straightforward. Ask your Mattermost administrator to confirm how webhook posts are attributed on your server, and decide before rollout which pattern your organization will require.

Choosing between plain text, Slack-compatible and attachment payloads

A plain text payload is a JSON object with a single text key. It suits alerts and status notices where the reader needs one line or a short block and little structure. The sending system builds only the message string, so there is little to get wrong, and any tool that can make an HTTP POST with a JSON body can use it.

  • What the sender builds: a JSON body containing a text key, sent with a Content-Type header of application/json to the webhook URL.
  • Markdown behavior: the text renders as Mattermost markdown, so bold text, lists, tables and code blocks display when the syntax is valid. Confirm which constructs render in your server version before relying on them.
  • Escaping: characters that come from logs or user input, such as backticks, asterisks and pipe characters, can break formatting. Escape or strip them in the sending code.
  • Length: long output such as log dumps should be truncated or sent as a file. Find the message size limit for your server version in the Mattermost documentation, since this guide does not state one.
  • Testing: send sample messages to a test channel using the same markdown your alerts produce, then check the result on desktop and mobile.

Before production, check that every text template renders correctly with empty values and very long strings.

Mapping source events to channel, sender identity and payload fields

This table maps each field a sending system typically produces to where it lands in a Mattermost incoming webhook, including the channel, sender name and icon. Read it as a design checklist: decide which fields go into the message text, which become attachment fields, and which settings must be confirmed on your server before you rely on per-webhook overrides.

Source fieldWebhook payload targetMapping notesConfirm before relying on it
Event typetext or attachment titlePut the event type in the headline so channel readers can scan alerts without opening the source system.Confirm your message template is stable across source versions.
Severityattachment color or field valueMap severity to a color or a labeled field. Keep the wording identical to the source so searches in Mattermost match alert feeds.Confirm that your receiving channel conventions treat each severity level the same way.
Ownerattachment field or @mention in textName the owning team or person in a field. Mentions only notify users who are members of the target channel.Confirm the user or group handles exist and are current on the server.
Link to source recordattachment title link or action textInclude one link back to the source system. Use the record URL, not a general dashboard, so responders land on the right item.Confirm the source system allows deep links that resolve for channel members.
Timestampattachment footer or fieldSend an ISO 8601 timestamp from the source so the time is not reinterpreted by the receiving server.Confirm which time zone your team reads in and how the source formats it.
Target channelchannel override in the webhook, or fixed channel set at creationOverriding the channel depends on admin settings. Default to a fixed channel for each webhook unless you have confirmed the override is enabled.Confirm the channel override setting for your server version in the System Console.
Sender display name and iconusername and icon_url overrides in the payloadUse a service name such as the integration name, not a person's name, so audit reads make the origin clear.Confirm the username and icon override settings for your version and whether they are enabled per webhook.
Team or channel ownershipwebhook creation scopeCreate the webhook in the team and channel that will own the alerts. Each webhook is tied to one channel and cannot post to others.Confirm which roles may create webhooks and who reviews them.

How an external event reaches a Mattermost channel

An external system reads the webhook URL from its own secret store and sends an HTTPS POST with a JSON payload to the Mattermost server. Mattermost treats the unique key in the URL as the only credential, checks that the hook exists and is enabled, then posts the message into the channel the hook is bound to. Channel members read it there. The trust boundary sits between the sender's network and the Mattermost server, so check who can read the URL on both sides.

Webhook path from the sending system to channel readers, with the trust boundary marked.

Security controls for webhook URLs and posting rights

An incoming webhook URL works as a bearer credential: anyone who holds it can post into the channel it targets. The controls below limit who can create webhooks, what they can reach, and how the URL is stored, logged and replaced over its life.

Restrict who can create webhooks

Decide which roles may create incoming webhooks in the System Console and keep that list short. Most organizations allow only a small platform or integration team, and everyone else requests a webhook through a ticket. Review the setting after every role change or reorganization, and confirm that the option is limited to the admins you intend in your own environment before you publish the integration guidance to staff.

Mattermost SAML docs

Create webhooks under dedicated accounts

Attach each webhook to a bot or service account that exists for one integration, not to a named employee's account. A personal account leaves with its owner, and its posts then appear to come from a person who never wrote them. Name the account after the source system, for example a monitoring or billing service, so that message authorship in channels and audit trails stays readable.

Keep URLs in a secret manager

Store each webhook URL in your enterprise secret manager and inject it into the sending system at runtime. Do not put it in source code, configuration files committed to Git, shared wiki pages or service tickets, where it persists long after the integration is retired. Limit read access to the owning service and its operators, and record who retrieves it.

Enforce HTTPS-only delivery

Confirm that the sending systems call the webhook endpoint only over HTTPS, and that the Mattermost site URL and reverse proxy serve TLS with a certificate your teams manage. A webhook URL sent over plain HTTP exposes the secret path to anyone on the network path. Test each sender against the production endpoint and check that certificate validation is not disabled in client code.

Limit the channels each webhook reaches

Point each webhook at the single channel its messages belong in, and avoid channels that hold sensitive discussions. Because a webhook can post into any channel it is bound to, a leaked URL can only add noise to that channel, but it can still mislead readers. Keep alert and automation webhooks out of private or restricted channels, and review the channel mapping when a team moves or renames a channel.

Log creation, use and rotation

Track when each webhook is created, by whom, and for which channel, and keep the records with your other audit data. Watch for posts from unexpected sources or volumes, since a sudden burst from a webhook often signals a leaked URL. Mattermost audit and logging options depend on your plan and deployment, so confirm what your edition records before relying on it.

Rotate URLs on staff and vendor changes

Replace the URL whenever a person who knew it leaves, a vendor's access ends, or a sending system is decommissioned or compromised. Rotation means creating a new webhook, updating the secret manager entry, switching the sender, and then deleting the old webhook. Schedule these steps with the owning team so the old URL stops working only after the sender has moved, and never leave orphaned webhooks active.

Keep the URL out of chat and screenshots

The full webhook URL must never appear in messages, channel headers, logs, error reports or screenshots shared with colleagues or support. Anyone who sees it can post as that integration, and chat history keeps the value even after deletion by others. Mask the URL in monitoring dashboards, redact it in troubleshooting threads, and tell staff to report an exposed URL so it can be rotated immediately.

Why webhook posts fail or land in the wrong place

This table lists the failures teams hit most often when an external system posts into Mattermost through an incoming webhook, with the likely cause and the check or fix for each. Work down the rows in order when a post does not appear, since the first few causes are the quickest to rule out.

Symptom or failureLikely causeCheck or fix
Request returns an error and nothing postsIncoming webhooks are disabled for the serverConfirm an administrator has enabled incoming webhooks in the System Console, then retry the request
No option to create a webhook in a channelThe user lacks permission to manage integrations in that team or channelAsk a team or system administrator with the right role to create the webhook, or grant the permission per your role policy
Posts stop after a credential changeThe webhook URL was rotated, regenerated or copied with a typoCompare the stored URL character by character with the current one in the integration settings, and update the sending system
Posts fail for one channel onlyThe channel was archived, renamed or the webhook was bound to a channel that no longer existsCheck the channel status, then recreate or reassign the webhook to an active channel
Request is rejected with a payload errorInvalid JSON, a missing text field or an unsupported field structureValidate the body with a JSON linter, send a minimal payload with only text, and add fields one at a time
Connection fails or certificate errors appearA proxy blocks outbound or inbound traffic, or the sending system does not trust the Mattermost TLS certificate chainTest from the sending host with curl, confirm proxy rules and install the internal certificate authority in the sender's trust store
Posts are dropped or delayed during burstsRate limits or message size limits were reached by a high-volume senderBatch or throttle messages at the sender, shorten large attachments and check the server rate limit settings
Messages show an unexpected name or iconThe webhook overrides the display name or icon, or the sender was not configured to set themReview the webhook's display name and icon settings, and set an explicit override in each payload if your team relies on it

Questions buyers ask before setting up webhooks

Do Mattermost incoming webhooks require a plugin?

No. Incoming webhooks are part of the core Mattermost server, so a plugin is not needed to post messages from an external system into a channel. An administrator still has to enable the feature in the System Console, and a team member with the right permissions then creates each webhook. If a team cannot find the option to create one, check that setting first. Confirm the exact menu path and any plan-level differences against the integrations documentation for the version you run, because menu labels change between releases.

How long does incoming webhook setup take, and what drives it?

A single webhook is a small configuration task: create it, choose a channel, and give the generated URL to the sending system. The duration depends on what surrounds that step. The main drivers are the number of source systems, whether each one needs a formatted payload or Slack-compatible output, who must approve the channel and sender, and how the URL will be stored and rotated. A one-off notification is quick to set up, while a rollout across many teams with naming standards, ownership records and tested payloads takes considerably longer. Ask for a quote that lists each source system and channel separately, so the effort is visible.

What does our internal team need to provide for webhook work?

Three groups of people usually need to contribute. A Mattermost administrator enables the feature and decides which teams may create webhooks. A channel owner confirms which channels may receive messages and who responds to them. An owner of each sending system confirms the payload, the event that triggers the post, and the place where the URL will be held. Your team also needs a decision on whether webhooks may override the displayed username or profile picture, and a secrets store that everyone who manages the integration can use. Having these owners named before work starts usually shortens the review cycle.

Can our own team set up incoming webhooks without outside help?

Yes, for a small number of notifications to channels the team already runs. An internal administrator with the right permissions can create the webhook and test a payload in a non-production channel. The work gets harder as the number of sources grows, as payloads need consistent formatting, or as audit and secret-handling rules apply. In those cases, the risk is usually inconsistent ownership and URLs stored in unsafe places, not the Mattermost configuration itself. Whether to build the process internally or with a partner depends on how many people will manage webhooks over time and how much documentation your compliance reviewers will expect.

What does a fixed-scope webhook engagement from DeployOpen cover?

DeployOpen agrees the scope, deliverables and timeline in writing before work starts, and the quote follows from that written scope. For webhooks, a typical scope would list the source systems and target channels, the permission and enablement settings, the approach for storing and rotating URLs, the payload templates and attachment formats to test, and a staging check before production use. The handover would include the configuration record and the steps for adding a new sender. Ongoing support, upgrade checks and continuous testing are available as retainers if your team wants them after the initial work. The written scope is the place to confirm exactly which items are included.

Do incoming webhooks keep working after a Mattermost upgrade?

They are expected to keep working within a supported release line, but test them after each upgrade rather than assuming. Mattermost releases a new server version in binary form on the 16th of each month, and Extended Support Releases are supported for longer. For example, v11.7 is an Extended Support Release with support ending 2027-05-15, while monthly releases have much shorter support windows. Check the release notes for changes to integration settings, payload handling or permissions before upgrading. Keep a short list of webhooks with a test message for each, so a post can be verified in staging and again in production.

Is an incoming webhook URL a security risk?

Yes, the URL works as a credential. Anyone who holds it can post messages into the channel it targets, so it must be handled like a password. Store it in your secrets manager, limit who can view it in the sending system, and avoid pasting it into tickets, chat or shared documents. Keep each webhook scoped to one channel and one purpose so a leaked URL has a small blast radius. When a sender is retired or a URL may have been exposed, regenerate it and update the sender. Confirm how regeneration and removal work in your version, and record who owns each webhook so the review process has an answer for every entry.

Keeping webhooks working through Mattermost upgrades

Every incoming webhook should be part of your upgrade test plan, because a server upgrade can change behavior that a sending system depends on without any visible error in the channel. Mattermost releases a new server version in binary form on the 16th of each month, so the cadence you choose sets how often that test runs. Mattermost v11.7 is an Extended Support Release with support ending 2027-05-15, and the pillar facts give the dates for other recent versions, so check the Mattermost server releases page for the current support window before you pick a target. Under a monthly track, expect the test to run every month. Under an ESR track, the test runs less often but the upgrade window is larger, so your team must plan a test pass for each ESR you intend to adopt. Confirm with your own platform team which track the organization follows and who signs off the result.

Name one owner for every webhook before the first upgrade test, not after something breaks. The owner is the person who can answer three questions: what system sends the payload, what channel receives it, and what the message is expected to look like. Keep that record in a register your operations team can read, with the webhook's display name, the channel, the sending system and its service owner, and the date the URL was last rotated. Without a named owner, a failing webhook is reported to the wrong team, and the URL often ends up pasted into a ticket or chat. Ask your platform team to confirm where the URL is stored and who has permission to view or regenerate it in the admin console, since those settings decide who can repair a broken integration.

Document which system posts where as part of the same register, and refresh it at each upgrade. A useful test case for each entry is a sample payload posted to a test channel, with the expected rendered result recorded beside it, so the reviewer can compare before and after the upgrade. Include attachments and any Slack-compatible payload fields, because those are the parts most likely to render differently after a change. When a channel is retired, disable or delete the webhooks that post to it first, then remove the sender's configuration, so the sending system does not keep posting into a channel that no one reads. When a sending system is retired, revoke its webhook URL and record the date. Illustrative example: a monitoring system that posts to a channel archived last quarter should have its webhook removed in the same change, not left to fail quietly.

How DeployOpen works on this

DeployOpen plans, builds, documents and supports Mattermost incoming webhooks inside your own infrastructure, so the webhook design fits your channel model, admin rules and security review. Each engagement starts from a written scope that names the source systems, target channels and controls involved.

How we scope

  • Inventory the external systems that will post, and the channels each one should reach.
  • Decide who may create webhooks, and which team owns each webhook and its URL.
  • Agree in writing whether payload transformation, attachments and secret rotation are included.

How we build

  • Enable incoming webhooks in the System Console and set the agreed creation permissions.
  • Build and test Slack-compatible payloads and attachments against each source system.
  • Verify that webhook URLs are stored and transmitted as secrets, not shared in chat or code.

How we hand over

  • Document each webhook's owner, target channel, purpose and rotation steps in a register.
  • Provide payload examples and a runbook for revoking or regenerating a compromised URL.
  • Walk your administrators through creating and retiring webhooks under the agreed policy.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing first.
  • Ongoing support, upgrades and retesting after each Mattermost release are available as a retainer.
  • Ask any quote to itemize scoping, build, testing, documentation and handover as separate lines.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.