Mattermost
Channels, messages and teams of a Mattermost server
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- Server URLRequiredHTTPS URL
- Personal or bot access tokenSecretRequired
Where to find them
- An administrator enables tokens in “System Console” → “Integrations” → “Integration Management” → “Enable Personal Access Tokens” (to allow a non-admin user, use “User Management” → “Users” → “Manage Roles”).
- In your profile → “Security” → “Personal Access Tokens” → “Create Token”, add a description and copy the token (it is shown only once). The token of a bot account (“Integrations” → “Bot Accounts”) also works.
OAuth 2.0
PKCEYour OAuth appBring your own OAuth app: register one with Mattermost, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide
Registering the OAuth app
- An administrator turns on “Enable OAuth 2.0 Service Provider” in “System Console” → “Integrations” → “Integration Management”.
- In the product menu → “Integrations” → “OAuth 2.0 Applications” click “Add OAuth 2.0 Application” (leave “Is Public Client” unchecked), name it “Maua.Culturewire”, set “Homepage” to https://www.example.com and, under “Callback URLs”, the redirect URI shown below.
- Copy the “Client ID” and the “Client Secret”. An administrator can mark it as “Is Trusted” so that it does not ask for consent.
Default scopes
No scopes required
Tools (3)
Mattermost API request
MATTERMOST_SEND_REQUESTAuthenticated call to the Mattermost API ({url}/api/v4). Any endpoint of the API is allowed. Examples: GET /users/me/teams, GET /users/me/teams/{team_id}/channels, GET /teams/name/{team}/channels/name/{channel}, GET /channels/{id}/posts?per_page=30, POST /posts {"channel_id": "…", "message": "…", "root_id": "(optional, thread)"}, POST /teams/{team_id}/posts/search {"terms": "…"}, GET /users/username/{username}, POST /channels/direct ["userId1", "userId2"].
Required scopes
No scopes required
Input
Mattermost API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Teams and channels
MATTERMOST_LIST_CHANNELSList, by team, the public and private channels you are a member of (ids included).
Required scopes
No scopes required
Input
No input parameters.
Send a message
MATTERMOST_SEND_MESSAGEPost a message in a channel or reply in a thread.
Required scopes
No scopes required
Input
Send a message input Name Type Description channelrequiredstringChannel ID (list them with MATTERMOST_LIST_CHANNELS) textrequiredstringMessage (supports Markdown) threadstringID of the root message, to reply in its thread

