Mattermost Channels API
The Channels API from Mattermost — 7 operation(s) for channels.
The Channels API from Mattermost — 7 operation(s) for channels.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mattermost-channels-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Mattermost REST Channels API
version: '4'
description: 'Mattermost REST API v4 for managing users, teams, channels, posts, threads,
files, integrations, plugins, webhooks, slash commands, and OAuth
applications on a self-hosted or cloud Mattermost server. Authentication
uses Personal Access Tokens or session tokens carried as a Bearer token.
'
contact:
name: Mattermost API Documentation
url: https://developers.mattermost.com/api-documentation
servers:
- url: https://{your-mattermost-server}/api/v4
description: Self-hosted Mattermost server
variables:
your-mattermost-server:
default: your-mattermost-server.com
description: Hostname of your Mattermost server
security:
- bearerAuth: []
tags:
- name: Channels
paths:
/channels:
get:
tags:
- Channels
summary: List all channels (sysadmin)
responses:
'200':
description: Channels
post:
tags:
- Channels
summary: Create a channel
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Channel'
responses:
'201':
description: Channel created
/channels/{channel_id}:
parameters:
- in: path
name: channel_id
required: true
schema:
type: string
get:
tags:
- Channels
summary: Get a channel
responses:
'200':
description: Channel
content:
application/json:
schema:
$ref: '#/components/schemas/Channel'
put:
tags:
- Channels
summary: Update a channel
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Channel'
responses:
'200':
description: Updated
delete:
tags:
- Channels
summary: Archive a channel
responses:
'200':
description: Archived
/channels/direct:
post:
tags:
- Channels
summary: Create a direct message channel
requestBody:
required: true
content:
application/json:
schema:
type: array
items:
type: string
responses:
'201':
description: DM channel
/channels/group:
post:
tags:
- Channels
summary: Create a group message channel
requestBody:
required: true
content:
application/json:
schema:
type: array
items:
type: string
responses:
'201':
description: Group channel
/channels/{channel_id}/members:
parameters:
- in: path
name: channel_id
required: true
schema:
type: string
get:
tags:
- Channels
summary: List channel members
responses:
'200':
description: Members
post:
tags:
- Channels
summary: Add a user to a channel
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
user_id:
type: string
responses:
'201':
description: Added
/channels/{channel_id}/members/{user_id}:
delete:
tags:
- Channels
summary: Remove a user from a channel
parameters:
- in: path
name: channel_id
required: true
schema:
type: string
- in: path
name: user_id
required: true
schema:
type: string
responses:
'200':
description: Removed
/teams/{team_id}/channels:
get:
tags:
- Channels
summary: Get public channels for a team
parameters:
- in: path
name: team_id
required: true
schema:
type: string
responses:
'200':
description: Channels
components:
schemas:
Channel:
type: object
properties:
id:
type: string
team_id:
type: string
type:
type: string
display_name:
type: string
name:
type: string
header:
type: string
purpose:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Personal Access Token or session token issued by /users/login.