How Mattermost outgoing webhooks trigger your service from chat
When a team wants a message in a Mattermost channel to start work in an external system, outgoing webhooks are the supported method. An outgoing webhook watches for a configured trigger word or channel event and sends an HTTP callback to a URL you specify, so your service receives the message content and acts on it. The integration runs in one direction: Mattermost calls out to your endpoint, and your service decides what happens next, such as opening a ticket, starting a build or querying an inventory system.
At a high level, the flow has three parts. An administrator or permitted user creates the webhook and selects the team and channel scope and the trigger words. When a matching message is posted, Mattermost sends a request to the callback URL containing details of the post, including the text, the channel and the user who posted it. Your service validates the request, performs its work and may return a response that Mattermost posts back into the channel. Each part has design choices, including who may create hooks, which channels are in scope and how the receiving service checks that a request genuinely came from your Mattermost server.
The exact fields in the callback payload, the enablement steps, the permission settings and the response options depend on the server version in use. No verified field list is covered here, so confirm them in the current Mattermost documentation for your version before you write the receiving code. Check whether outgoing webhooks are enabled on your server and by which roles, and test the callback in a non-production channel first.
What you need before creating an outgoing webhook
An outgoing webhook is a chain of four parts: a Mattermost server that supports the feature, a database and deployment you can keep running, a receiving endpoint, and a person with the rights to create the hook. Each card below is a decision or check to settle before anyone clicks create, because a gap in any one of them shows up later as a failed callback or a hook nobody can manage.
A supported server version
Pick the server version before writing the hook, because outgoing webhook behavior is part of the server you run. Mattermost releases a new server version in binary form on the 16th of each month, and v11.7 is an Extended Support Release with support ending 2027-05-15. Confirm which line your organization is on and whether a planned upgrade would change the webhook request or response handling. Check the release notes for your version before you rely on it.
Server releases pageA PostgreSQL-backed deployment
Mattermost runs as a single Linux binary with PostgreSQL as its database. Confirm that your team already operates this deployment, including backups and access controls, because webhook configuration and message history are stored there. A hook that works on a test server may behave differently on a production database with its own retention and backup schedule. Ask who owns the database and who is on call when it fails.
An HTTPS endpoint you control
The receiving service must accept HTTPS POST requests from the Mattermost server, so the network path from the server to the endpoint needs to be open and tested. Decide whether the endpoint sits inside your network or on a public host, and whether a firewall, proxy or egress rule sits between them. Verify that the endpoint returns a response within the time Mattermost expects, because slow handlers make the integration look broken from the channel.
An account with the right role
Decide which user will create the hook and confirm that the account has the permission to do so. Outgoing webhooks are created through integration settings, and some of those settings may be restricted to system admins. Confirm with the docs whether any server setting must allow outgoing integrations before a user can create one, and whether non-admin users can be granted that right. Use a named owner or a service account, not a departing employee's login.
Trust and certificate questions for the target
Settle how the Mattermost server will trust the endpoint before a message is sent to it. Confirm the certificate is issued by a trusted authority, that it covers the hostname in the callback URL, and that your internal certificate chain is installed on the Mattermost server. Decide which message content the endpoint may receive, since every matching post is sent to the target, and record who approves that data flow.
Deployment planning docsMatching messages reach your service only through a token-checked callback
The flow starts when a channel member posts a message containing a configured trigger word in an in-scope channel. The Mattermost server matches the message and sends an HTTPS POST with the message details and the webhook token to your callback URL. Your callback service, inside your network, runs a token check before it does any other work, then returns a JSON response. Mattermost posts that response back into the channel as a reply. Confirm that the token check runs first on every request and that the callback URL accepts only HTTPS traffic.
Request and reply path across the Mattermost and callback service trust boundary.
Configuring an outgoing webhook in sequence
This sequence takes a team from confirming that outgoing webhooks are available on their server to a verified round trip, where a message in a chosen channel reaches their receiving service and the service's reply lands back in Mattermost. Each step closes with a check so problems surface before anyone relies on the hook.
Confirm server version and webhook enablement
Start by recording the Mattermost server version you run and checking that outgoing webhooks are enabled for the server and for the account type that will create them. Release timing matters here: the server releases page lists monthly binary releases and Extended Support Releases with set end-of-support dates, so confirm your version is still supported before you build against it. Check the integration settings in the System Console or with the administrator who controls them, and confirm the exact setting names in the documentation for your version. Done means you have a written version number, a support end date, and a yes or no on whether the feature is enabled for the people who will create hooks.
Decide team, channel and trigger word scope
Decide which team and channel the hook will watch, and whether it should fire on every message or only on messages that begin with a trigger word. Narrow scope limits what leaves your Mattermost server, so keep private or sensitive channels out of hooks unless the data flow has been reviewed. Write down the trigger words, the channel, and who approved sending that content to the external service. Done means a one-page scope note that names the channel, the trigger words and the data the receiving service will see.
Create the hook under the owning account
Create the outgoing webhook under the account that will own it, ideally a bot account rather than a personal login, so the hook keeps working when staff change roles. Confirm the account has permission to create integrations in the chosen team and that its owner is recorded in your access review. Check the new hook's entry in the integrations list to confirm it shows the intended team, channel and trigger words. Done means the hook exists, is attributed to the intended account, and matches the scope note from the previous step.
Set the callback URL and content type
Enter the HTTPS callback URL of your receiving endpoint and confirm the content type your service expects. Use an endpoint you control on TLS, and avoid plain HTTP for anything carrying team messages. Restrict network egress from the Mattermost server so it can reach only the approved callback hosts. Done means the hook shows the correct callback URL, and a connectivity test from the Mattermost server to that URL succeeds through your firewall or proxy rules.
Record the token the hook issues
Once saved, Mattermost issues a token for the hook. Treat it as a shared secret: store it in your secrets manager or environment configuration, never in source control or chat, and limit who can view it. Your receiving service will compare the token on each incoming request to confirm the call came from this hook. Done means the token is stored in your secrets system, the storage location is recorded, and you can name the people who can read it.
Build and deploy the receiving endpoint
Build the service that receives the POST from Mattermost. It should verify the token on every request, reject requests that fail the check, and return a response that Mattermost can post back to the channel if you use that reply path. Keep the handler small, log the request metadata needed for investigations, and avoid writing full message bodies to logs unless your retention policy allows it. Run it in staging first. Done means the endpoint is deployed, returns the expected response for a valid request, and refuses a request with a wrong or missing token.
Run test messages and confirm rejections
Post a test message that matches a trigger word in the scoped channel, and confirm it reaches your endpoint with the expected fields and that the reply appears in the channel if you configured one. Then send a request to the endpoint with a wrong token and confirm it is rejected and logged. Also post a message outside the trigger words and confirm nothing is sent. Done means you have recorded evidence of the successful round trip, the rejected request, and the silent non-matching message, and you have signed off the hook for use.
When outgoing webhooks, slash commands or a plugin fit best
Outgoing webhooks fit when Mattermost should notify an external service automatically because a message matched a condition, such as a trigger word posted in a chosen channel. No user has to type a command, so the integration reacts to ordinary conversation. The callback is a plain HTTP request from the Mattermost server to a URL you own, and any reply is posted back into the channel. Because anyone who can post in the scoped channel can cause a call, the trigger words and channel scope define the real attack surface.
- Who can trigger it: any member who posts in the scoped channel, including people you did not intend to reach the service.
- Effort drivers: the number of channels, the trigger word design and the handling of the callback payload on your side.
- Upgrade implications: the feature relies on configuration rather than code, so it is usually the lightest item to carry across server upgrades, but confirm behavior against each release you adopt.
- Main risk: a trigger word that matches normal conversation sends sensitive text to an external endpoint.
- Verification: confirm the token on each request in your receiving service before acting on it.
Check which channels are in scope, which trigger words are configured and whether the receiving service can reject requests without a valid token.
Slash commands fit when a user should make an explicit request, such as looking up a ticket or starting an approval, with a clear command name and a visible response. The user types the command, Mattermost sends an HTTP POST or GET to your service, and your service returns a response that is shown in the channel or privately to the user. This makes intent explicit, which is easier to audit than automatic triggers. Verification relies on a token that Mattermost includes with each request, so your service must check it before acting.
- Who can trigger it: users who can run the command, which you can restrict with permissions for non-admin users.
- Effort drivers: the number of commands, the response formats you return and the handling of errors and timeouts in your service.
- Upgrade implications: the command definition lives in configuration, so changes to the request format or response types must be retested after each upgrade.
- Main risk: a token that is leaked, shared or never checked lets any caller impersonate the integration.
- Verification: compare the token in each request against the value stored for that command and reject mismatches.
Confirm which request method your service expects, who may run each command and how the token is stored and rotated.
A custom plugin fits when the logic needs server-side state, scheduled work, interface elements in the Mattermost web app or sustained maintenance over time. Plugins run inside the Mattermost ecosystem with a server component and optionally a web component, so they can react to events, store data and respond with richer behavior than a single request. This flexibility comes with ownership: someone must build, test and maintain the code against each release. Plugin behavior also depends on deployment choices, such as shared storage in a high availability cluster.
- Who can trigger it: depends on the design, and the plugin can enforce its own permission checks on users, channels and actions.
- Effort drivers: the features required, the testing against each release you plan to run, and the cluster behavior if you run multiple nodes.
- Upgrade implications: the plugin must be rebuilt and retested for each server version you adopt, so budget for recurring work rather than a one-time build.
- Main risk: an unmaintained plugin can block an upgrade, and a plugin with broad permissions expands what a compromise can reach.
- Verification: test the plugin on the exact server version you plan to run, including permission checks and failure cases.
Ask who will own the code after delivery, which Mattermost versions it must support and how plugin updates will be tested before rollout.
Mapping trigger words, channel scope and payload fields to your service
This table compares each Mattermost outgoing webhook setting and payload field with what your receiving service must do with it. Read it as a checklist for the build: confirm each row against a real test message, because field names and the exact payload shape should be copied from what your server sends rather than from memory. The main takeaway is that scope, trigger matching and token verification are decided in Mattermost, but your service is responsible for rejecting anything it did not expect.
| Mattermost element | What it controls | What your service must do | What to confirm |
|---|---|---|---|
| Team and channel scope | Which team and which channels the webhook listens in, set when the webhook is created | Accept messages only from the expected team and channel identifiers, and reject others even if they reach the endpoint | The webhook is limited to the channels you intended, and a test post in an unlisted channel sends nothing |
| Trigger words | The words that start a call to your service when a message begins with them | Strip the trigger word from the text before parsing commands, and handle case and spacing consistently | Whether matching is exact or prefix-based in your server version, and how trigger words interact with each other |
| Content type of the request | How Mattermost encodes the body it posts to your callback URL | Parse the body using the content type the server actually sends, and fail closed on anything else | The Content-Type header in a live test request, not the one assumed in documentation |
| User and channel identifiers | Fields identifying the sender and the channel where the message was posted | Map identifiers to your own user records, and log them for audit and troubleshooting | The exact field names in a test payload, and whether usernames can change while IDs stay fixed |
| Message text and post identifiers | The full message text and the identifier of the post that triggered the call | Use the post identifier to deduplicate retries and to correlate any reply you send | Whether retries can deliver the same post twice, and how your service should behave on repeats |
| Verification token | A shared secret Mattermost includes so your service can confirm the request came from its webhook | Compare the supplied token with the stored value in constant time and reject requests that do not match | Where the token is stored, who can view it, and when it is rotated after a staff change |
| Response returned to Mattermost | Text or structured content posted back into the channel after your service replies | Return a response in the format the webhook expects, and keep it short and within any limits Mattermost applies | Whether your reply is posted as the webhook owner, and whether replies are visible to the whole channel |
| Callback URL and timeouts | Where Mattermost sends the request and how long it waits for a reply | Respond promptly, and move long jobs to a background process that posts results later | Whether your endpoint can answer within the server's configured wait, and how failures are reported to users |
Securing the callback so only Mattermost can trigger it
An outgoing webhook sends message text from your channels to a service you own, so the callback endpoint becomes a privileged consumer of chat content. The controls below work together: authenticate each request, protect the transport, narrow who can reach the endpoint, limit what gets sent, and keep an auditable record with clear retention rules.
Verify the token on every request
Each outgoing webhook is configured with a token that Mattermost includes in the payload it sends. Your callback service should compare that token on every request and reject anything that does not match, before parsing the message. Store the token in your secrets manager, not in code or chat. Rotate it when a staff member who knew it leaves, when the receiving host changes, or when a log or config file may have exposed it. Confirm in your own environment how the token appears in the payload, since your handler depends on that exact field.
Mattermost SAML docsServe the callback over HTTPS only
Message text can contain personal or regulated data, so the callback URL should use HTTPS with a certificate your organization issues or manages through its own process. Confirm that the Mattermost server validates the certificate chain your internal authority uses, including any private root. Reject plain HTTP at the load balancer and do not allow redirects that could send the payload to a different host. Review certificate expiry as part of the same renewal process you use for other internal services.
Restrict the endpoint to the Mattermost network path
Limit inbound access to the callback endpoint so only the Mattermost application servers can reach it. Use firewall rules, security groups or a private service mesh policy keyed to the server addresses, and keep the endpoint off public networks. In a high availability cluster, every application node sends callbacks, so the allowlist must cover all of them and change when nodes are added or replaced. Test the restriction from an outside host to confirm it is blocked.
Limit trigger scope to needed channels
Create each outgoing webhook for the narrowest set of channels that need it, instead of all public channels on a team. Trigger words also widen exposure, because any message containing them sends its text to your service. Choose specific trigger words and document who owns each webhook. Review the channel list and trigger words when a project closes or a team changes its workflow, and remove webhooks that no longer serve a purpose.
Treat the callback as a privileged consumer
A callback service that reads chat content holds sensitive data even if it never writes to Mattermost. Run it with least-privilege credentials for the downstream systems it calls, and give it no Mattermost admin or bot token unless a reply genuinely requires one. Keep it in its own network segment, patch it on the same schedule as other security-relevant services, and include it in your access reviews. Ask who can deploy or read its configuration, since that access exposes the same content.
Log requests and set retention rules
Record each callback with its time, webhook identity, channel, sender, outcome and response code, and review those logs for unexpected volume or rejected tokens. Define before go-live how long the service keeps message payloads, who may read them, and how they are deleted. Logs can copy message text into a second system, so apply the same retention and access rules there. Confirm with your privacy and records teams whether Mattermost retention settings also need to match this policy.
Keeping outgoing webhooks working across Mattermost upgrades
An outgoing webhook is only as reliable as the last upgrade you tested it against, so the integration needs a planned retest on every server upgrade. Mattermost releases a new server version in binary form on the 16th of each month, and the server releases page lists which versions are Extended Support Releases. Mattermost v11.7 is an Extended Support Release released on 2026-05-15 with support ending 2027-05-15, so an organization on that line will move on a slower cadence than one tracking monthly builds. Either way, the webhook behavior you depend on (the payload Mattermost sends, the trigger word matching, and how your service's response is posted back into the channel) should be treated as part of the regression scope for each planned upgrade, not as something that stays fixed once it works.
A practical approach starts with pinning the target version in your deployment tooling so that no node picks up a newer build by accident. Keep a staging server that matches production in version, database and proxy configuration, and register a staging copy of each outgoing webhook that points at a test endpoint on your side. Add a test message to the regression list for every trigger word in use, including one that includes punctuation or leading spaces, because those are the edge cases most likely to change silently. Record, for each release you test, the callback behavior you observed: the request fields, the authentication token handling, the response types your service receives, and any change in how the response is rendered. This log becomes your evidence when someone asks why an upgrade window was delayed.
Before any upgrade window, read the release notes for every version between your current build and the target, and look for breaking changes in the server and in any plugin or integration area that touches webhooks. Breaking changes between major versions need particular attention, since Mattermost v12.0 was released on 2026-10-16 and its support ends on 2027-01-15, a shorter path than the 2027-05-15 end date for v11.7. Confirm with your own team which webhook settings are enabled in the System Console, whether any integration depends on behavior that a release has deprecated, and who signs off the change. If the notes do not clearly cover a callback behavior you rely on, treat that as an open question and test it in staging rather than assuming it is unchanged.
Why outgoing webhook calls fail and how to fix them
This table maps the most common outgoing webhook failures to their likely causes, fixes and checks. Start with the symptom you see, work down the cause column, and confirm each fix with the check before moving on to the next component.
| Symptom | Likely cause | Fix | Check |
|---|---|---|---|
| No callback reaches your service | Trigger word or channel scope does not match the message, or the outgoing webhook is disabled | Confirm the hook is enabled in System Console, then match the trigger word and channel exactly as the user typed them | Post the trigger word in the scoped channel and confirm a request is logged by your endpoint |
| Endpoint rejects the token | Token was rotated in Mattermost or copied with extra spaces or from the wrong hook | Regenerate or re-copy the token from the hook settings, update your service configuration, and restart the service if it caches the value | Compare the token your service expects with the one shown on the hook, character for character |
| Callback times out | Endpoint is unreachable from the Mattermost network, egress is blocked by a firewall or proxy, or the service responds too slowly | Check the callback URL resolves and is reachable from the Mattermost server, allow the outbound route, and move slow work to a background job that returns quickly | Run a request from the Mattermost server to the callback URL and measure the response time under normal load |
| TLS handshake or certificate error | Incomplete certificate chain, certificate hostname does not match the URL, or an internal certificate authority is not trusted by the Mattermost server | Serve the full certificate chain from your endpoint, match the hostname in the URL to the certificate, and install the internal CA on the Mattermost host | Connect with an TLS client from the Mattermost server and confirm the chain validates without warnings |
| Reply never appears in the channel | Response body is not in the format Mattermost expects, content type is wrong, or the service returned an error status | Return a JSON body with the expected fields and a JSON content type, and log any non-success status your service returns | Send a test request with the same payload Mattermost sends and confirm the response body parses as JSON |
Questions buyers ask before building outgoing webhooks
How much more effort is an outgoing webhook than a slash command or a plugin?
An outgoing webhook is usually the smallest of the three because Mattermost does the message matching and sends an HTTP POST to your endpoint, so your team only builds the receiving service. A slash command also needs a receiving service, plus a user-initiated trigger, response handling and token checks, so the effort is similar in size. A plugin is the largest option because it adds a Go server component, a web app component, a manifest, packaging and testing against each monthly release. The right choice depends on whether you need only to react to a message, to let users invoke an action on demand, or to change how Mattermost itself behaves. Confirm the requirement before choosing, since the cheapest option that meets it is usually the right one.
What drives the cost of an outgoing webhook integration?
Cost is driven by the work your team pays for, not by the webhook setting itself. The main drivers are the number of trigger words and channels in scope, the logic the receiving service must apply to each request, the security review of the endpoint and its secrets, and the testing needed to confirm the integration still works after Mattermost upgrades. Each added trigger adds design, handling and test cases. Ask any provider for a quote that lists these components separately: discovery and design, build of the receiving service, configuration in Mattermost, security review, test plan, documentation and handover. A fixed-scope quote follows from the written scope, so a clearly defined list of triggers and expected responses keeps the quote specific.
Can our own team build outgoing webhooks in house?
Yes, if you have an engineer who can write and host an HTTPS service, an admin who can enable the feature and manage the Mattermost configuration, and someone who owns the security review. Outgoing webhooks are documented in the Mattermost integrations guide, so the configuration is straightforward. The harder parts are verifying each request, handling failures and retries cleanly, avoiding loops where a bot posts a message that triggers another webhook, and keeping the integration tested through upgrades. Teams that lack capacity for those parts often bring in a partner for the design and review, then operate the result themselves. Decide early which of these you will own after handover.
What do we need to provide for an outgoing webhook project?
The project needs five things from your side. First, a named endpoint owner who understands the receiving service and its business logic. Second, network access that lets your Mattermost server reach the endpoint over HTTPS, and lets the endpoint reach any systems it calls. Third, a test channel and test team where messages can be sent without affecting production users. Fourth, an admin account on Mattermost that can enable outgoing webhooks and, if required, approve their creation. Fifth, a decision-maker who signs off the trigger words, channel scope and the data the receiving service may see. Missing any of these usually delays the work more than the technical build itself.
How long does an outgoing webhook project take?
Duration depends on the scope and on how long approvals take, not on the webhook setting itself. A small integration with a few trigger words, one receiving service and a test channel moves quickly through build and testing. Longer timelines come from security review of the endpoint, approval of who may create webhooks, sign-off on what message content leaves Mattermost, and coordination with the owners of the receiving system. Ask for a schedule that separates design, build, test, security review and rollout, and that names the approval steps and who gives them. A fixed-scope agreement sets the timeline in writing before work starts.
What happens to outgoing webhooks when Mattermost is upgraded?
The webhook configuration usually survives an upgrade, but the behavior around it must be checked, because your receiving service depends on the request format and on Mattermost's handling of triggers and responses. Mattermost ships a new server version each month, and Extended Support Releases are available for organizations that want fewer upgrades. Before each upgrade, confirm the release notes for changes to integrations, run your test cases against a staging server, and confirm the endpoint still accepts and verifies requests correctly. Ask any partner whether upgrade testing is part of the quote or a separate retainer, and who is responsible for fixing breakage found after a production upgrade.
How do we keep outgoing webhooks secure?
Treat the token and the endpoint as secrets. Outgoing webhooks include a token that your receiving service should check on every request, so a request from anywhere else is rejected. Serve the endpoint only over HTTPS, store the token outside source code, limit which channels can trigger the webhook, and restrict who can create or edit it. Make sure the receiving service validates every field it uses and never trusts message text as commands. Log requests with enough detail to investigate, but avoid logging message content that the business does not need to keep. Ask for these controls to appear in the written scope and in the security review.
How DeployOpen scopes and delivers Mattermost webhook integrations
DeployOpen plans, builds, tests and documents Mattermost outgoing webhooks inside the client's own infrastructure, starting from a written scope. The work covers trigger words, channel scope, the receiving service and the handover to the team that will run it.
How we scope
- Inventory which channels, trigger words and external services the outgoing webhook will call, and who owns each one.
- Confirm the Mattermost server version, deployment model and whether the receiving service is reachable from the Mattermost server.
- Agree in writing the webhook configuration, the callback contract, the test cases and the acceptance criteria before any build starts.
How we build
- Configure outgoing webhooks with narrow channel scope and trigger words chosen to avoid accidental calls from ordinary conversation.
- Build or adapt the receiving service to verify the shared token, validate the payload and return responses Mattermost can post back.
- Test success, timeout, malformed response and rejected token paths in a non-production Mattermost instance before any production change.
How we hand over
- Document each webhook's purpose, channel scope, trigger words, callback URL owner and the secret rotation steps.
- Provide the test scripts and a short runbook so your team can verify behavior after server upgrades or configuration changes.
- Walk through the handover with the administrators and the service owners who will maintain the receiving endpoint.
How we support
- Retest outgoing webhooks after planned Mattermost upgrades, using the release schedule your team has chosen to follow.
- Available as a retainer for ongoing support, periodic review of webhook scope and changes to the receiving service.
- Confirm with your team which support levels, response expectations and change windows apply before the retainer starts.

