Skip to content
Mattermost logo

Connectors / Communication · HTTP Connector

Automate Mattermost with Tray.ai

Create a post and create a channel in Mattermost, and start a workflow when Mattermost sends “Message posted in a channel”.

What can you do with Mattermost on Tray.ai?

Mattermost is a team messaging platform with channels, threaded posts, bots, and webhook integrations that organizations can run on their own servers. Tray.ai connects to Mattermost through the HTTP Connector, so your workflows can call the Mattermost API alongside the rest of your stack.

  • Create a post in the incident channel when your monitoring tool raises a critical alert.
  • When Mattermost sends “Message matches a trigger word”, open a ticket in your help desk.
  • Deactivate a user when HR marks an employee as departed in your HR system.
  • Create a channel for each new customer project in your project tracker.
Connects through
HTTP Connector
Authentication
A bearer token
Base URL
https://{your-mattermost-url}/api/v4

Set it up

Connect Mattermost to Tray.ai

Each step uses Mattermost's own API details, from its documentation.

Step 1

Save Mattermost's API token

Save the token Mattermost issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://{your-mattermost-url}/api/v4 as the base URL. Or paste a cURL example from Mattermost's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “Search posts”

It's one of 13 documented actions, under Posts. The response comes back as data the next step can map into your other apps.

Step 4

Start workflows from Mattermost events

Give Mattermost the URL of a Tray.ai webhook trigger. “Message posted in a channel” can then start a workflow, and so can 1 other event.

Workflows to build with Mattermost

Each one uses actions and events from Mattermost's own API documentation.

Post Datadog alerts to Mattermost

When

A monitor alerts in Datadog

Then

  1. Create a post in the on-call channel
  2. Pin a post until the alert resolves

With Datadog

Open Jira issues from Mattermost trigger words

When

Message matches a trigger word

Then

  1. Create an issue in Jira from the message
  2. Create a post with the issue link

With Jira

Create Mattermost users for new Okta users

When

A user is activated in Okta

Then

  1. Create a user
  2. Add a channel member to the team channels

With Okta

Apps you can build on Mattermost data

Internal tools your team can build with an AI assistant, each one using Mattermost calls from its API documentation.

Channel admin console

Lists channels and lets an admin add or remove members and archive channels that are no longer used.

Trigger word alert log

Collects messages that match trigger words so a support or security lead can review and pin key posts.

User offboarding tool

Searches users and lets IT deactivate an account when someone leaves.

Give your AI agents Mattermost tools

Build an MCP server on Mattermost in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create a post
  • Create a channel
  • Search users
  • Edit a post
  • Delete a post
  • Pin a post
  • Search posts
  • List channels

What the Mattermost API covers

3 resources and 13 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Posts

  • Create a post
  • Edit a post
  • Delete a post
  • Pin a post
  • Search posts

Channels

  • Create a channel
  • List channels
  • Archive a channel
  • Add a channel member
  • Remove a channel member

Users

  • Search users
  • Create a user
  • Deactivate a user

Events Mattermost can send to a Tray.ai webhook trigger

  • Message posted in a channel
  • Message matches a trigger word

Checked against Mattermost's own documentation on 2026-10-22

docs.mattermost.com/api/reference/mattermost-api

Frequently asked questions

What can a Tray.ai workflow do in Mattermost?

+

The Mattermost API documents 13 actions across 3 resources (Posts, Channels, Users). For example: Create a post; Create a channel; Search users. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Mattermost?

+

The Mattermost API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Mattermost events can start a Tray.ai workflow?

+

Mattermost sends 2 events to a webhook URL, for example: Message posted in a channel; Message matches a trigger word. A Tray.ai webhook trigger receives them and starts a workflow.

See Mattermost working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.