Mattermost Channels API

The Channels API from Mattermost — 7 operation(s) for channels.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
In-App Chat AE-150.40

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /channels List all channels (sysadmin) · List all channels (sysadmin) #
Ask an LLM
“Which channels exist across the whole Mattermost server?”
“Can a sysadmin list every channel regardless of team?”
Tell an agent
List all channels on the server.
Show every channel for the sysadmin.
POST /channels Create a channel · Create a channel #
Ask an LLM
“How do I create a new public or private channel?”
“Can I set a channel's purpose and header when creating it?”
Tell an agent
Create a channel named {name} on team {team_id}.
Create a {type} channel {name} with purpose {purpose}.
GET /channels/{channel_id} Get a channel · Get a channel #
Ask an LLM
“What are the details of one channel?”
“Can I look up a channel by its ID?”
Tell an agent
Get channel {channel_id}.
Show the details of channel {channel_id}.
PUT /channels/{channel_id} Update a channel · Update a channel #
Ask an LLM
“How do I rename a channel or change its purpose?”
“Can I edit a channel's header after it is created?”
Tell an agent
Rename channel {channel_id} to {name}.
Set the purpose of channel {channel_id} to {purpose}.
DELETE /channels/{channel_id} Archive a channel · Archive a channel #
Ask an LLM
“How do I archive a channel?”
“Is archiving a channel permanent?”
Tell an agent destructive · confirm first
Archive channel {channel_id}.
Archive the channel {channel_id} so it is no longer visible.
POST /channels/direct Create a direct message channel · Create a direct message channel #
Ask an LLM
“How do I create a direct message channel between two users?”
“Can I open a private DM channel for two people?”
Tell an agent
Create a direct message channel.
Open a private DM channel.
POST /channels/group Create a group message channel · Create a group message channel #
Ask an LLM
“How do I create a group message channel for several users?”
“Can I start a group chat with a list of members?”
Tell an agent
Create a group message channel.
Start a group chat.
GET /channels/{channel_id}/members List members of a channel · List channel members #
Ask an LLM
“Who are the members of a channel?”
“Can I see every user in one channel?”
Tell an agent
List the members of channel {channel_id}.
Show who belongs to channel {channel_id}.
POST /channels/{channel_id}/members Add a user to a channel · Add a user to a channel #
Ask an LLM
“How do I add a user to an existing channel?”
“Can I invite someone to a channel by their user ID?”
Tell an agent
Add user {user_id} to channel {channel_id}.
Invite {user_id} to channel {channel_id}.
DELETE /channels/{channel_id}/members/{user_id} Remove a user from a channel · Remove a user from a channel #
Ask an LLM
“How do I remove a user from a channel?”
“Can I kick someone out of a channel by their user ID?”
Tell an agent destructive · confirm first
Remove user {user_id} from channel {channel_id}.
Kick {user_id} out of channel {channel_id}.
GET /teams/{team_id}/channels List a team's public channels · Get public channels for a team #
Ask an LLM
“Which public channels belong to a team?”
“Can I list only the public channels of one team?”
Tell an agent
List the public channels of team {team_id}.
Show team {team_id}'s public channels.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mattermost:mattermost-channels-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mattermost-channels-api-openapi.yml Raw ↑
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
      operationId: getChannels
      x-operation-id-source: derived
    post:
      tags:
      - Channels
      summary: Create a channel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Channel'
      responses:
        '201':
          description: Channel created
      operationId: postChannels
      x-operation-id-source: derived
  /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'
      operationId: getChannelsByChannelId
      x-operation-id-source: derived
    put:
      tags:
      - Channels
      summary: Update a channel
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Channel'
      responses:
        '200':
          description: Updated
      operationId: putChannelsByChannelId
      x-operation-id-source: derived
    delete:
      tags:
      - Channels
      summary: Archive a channel
      responses:
        '200':
          description: Archived
      operationId: deleteChannelsByChannelId
      x-operation-id-source: derived
  /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
      operationId: postChannelsDirect
      x-operation-id-source: derived
  /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
      operationId: postChannelsGroup
      x-operation-id-source: derived
  /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
      operationId: getChannelsByChannelIdMembers
      x-operation-id-source: derived
    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
      operationId: postChannelsByChannelIdMembers
      x-operation-id-source: derived
  /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
      operationId: deleteChannelsByChannelIdMembersByUserId
      x-operation-id-source: derived
  /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
      operationId: getTeamsByTeamIdChannels
      x-operation-id-source: derived
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.