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”.

Great — a couple more details

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

See all connectors

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.

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.