Skip to main content
Technical Preview

Overview

A client-mode connector for a curated messaging slice of the Mattermost API v4: Default BASE_ADDRESS is https://YOUR_MATTERMOST_HOST (site origin — not including /api/v4). Topics use messaging/mattermost/<object>/<verb>. Outgoing webhooks and slash commands that Mattermost POSTs to your infrastructure need a companion ENABLE_SERVER connector (document only here).
REST v4 methods send Authorization: Bearer {token} (personal access token). Incoming webhook execute uses only the hook id in the path — do not send a Bearer header on that event. Prefer Hub secrets (MATTERMOST_TOKEN, and site origin via MATTERMOST_BASE_URL / MATTERMOST_HOST). Status remains blocked until an authenticated live smoke succeeds.

Basic Syntax

Events

Auth

  1. On your Mattermost server, create a personal access token for a lab user with create_post (and related) permissions. Copy the token once.
  2. Set connector BASE_ADDRESS to the site origin (e.g. https://mattermost.example.com) — do not append /api/v4.
  3. For REST events, pass token on the MQTT payload so Authorization: Bearer {value.json.token} resolves.
  4. For incoming webhooks, create an Incoming Webhook in Mattermost Integrations and pass hook_id (the id segment after /hooks/); do not send a Bearer header on Executeincomingwebhook.
  5. Store secrets in Hub / GET SECRET "MATTERMOST_TOKEN". Optional site URL secrets: MATTERMOST_BASE_URL or MATTERMOST_HOST. Never commit real credentials.
  6. Successful GET /api/v4/users/me returns HTTP 200 with a user JSON object. POST /api/v4/posts returns 201. Incoming webhook execute typically returns 200 with body ok.

Example payloads

getUsersMe:
createPost:
executeIncomingWebhook:
systemPing:
getChannel:

Deploy notes

  • Deployable file: MattermostRestApi.lot — no ADD METADATA.
  • Hub sidecar: hub-metadata.lot with WITH STATUS "beta", WITH CATEGORY "REST API Routes", and WITH DOCLINK to this page.
  • Suggested branches: feat/rest-api-route-mattermost (broker examples) and feat/docs-rest-api-mattermost (Mintlify). Hugo owns GitHub pushes.

References

Last modified on October 21, 2026