Mattermost Teams API

The Teams API from Mattermost — 6 operation(s) for teams.

GitHub OpenAPI

Operations 10

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 /teams List teams · List teams #
Ask an LLM
“Which teams exist on my Mattermost server?”
“Can I page through all my teams?”
Tell an agent
List all teams.
Show {per_page} teams per page starting at page {page}.
POST /teams Create a team · Create a team #
Ask an LLM
“How do I create a new team?”
“Can I set allowed domains and an invite ID when creating a team?”
Tell an agent
Create a team named {name}.
Create team {name} with display name {display_name}, type {type} and allowed domains {allowed_domains}.
GET /teams/{team_id} Get a team · Get a team #
Ask an LLM
“What are the details of one team?”
“Can I look up a team by its ID?”
Tell an agent
Get team {team_id}.
Show the details of team {team_id}.
PUT /teams/{team_id} Update a team's details · Update a team #
Ask an LLM
“How do I rename a team or change its allowed domains?”
“Can I update a team's description after it's created?”
Tell an agent
Update team {team_id} with display name {display_name}.
Set the allowed domains of team {team_id} to {allowed_domains}.
DELETE /teams/{team_id} Soft delete a team · Soft delete a team #
Ask an LLM
“How do I delete a team?”
“Is deleting a team permanent?”
Tell an agent destructive · confirm first
Delete team {team_id}.
Soft delete team {team_id}.
PUT /teams/{team_id}/patch Patch a team · Patch a team #
Ask an LLM
“Can I change just one field of a team without resending the rest?”
“Is there a partial update for teams?”
Tell an agent
Patch team {team_id} with display name {display_name}.
Patch team {team_id} to allow open invites {allow_open_invite}.
POST /teams/search Search teams by name · Search teams #
Ask an LLM
“Which teams match a search term?”
“Can I find a team by its name?”
Tell an agent
Search teams for {term}.
Find teams whose name contains {term}.
GET /teams/{team_id}/members List a team's members · List team members #
Ask an LLM
“Who belongs to a given team?”
“Can I see every member of one team?”
Tell an agent
List the members of team {team_id}.
Show who is on team {team_id}.
POST /teams/{team_id}/members Add a user to a team · Add a user to a team #
Ask an LLM
“How do I add a user to a team?”
“Can I invite someone to a team by their user ID?”
Tell an agent
Add user {user_id} to team {team_id}.
Invite {user_id} to team {team_id}.
DELETE /teams/{team_id}/members/{user_id} Remove a user from a team · Remove a user from a team #
Ask an LLM
“How do I remove someone from a team?”
“Can I kick a user off a team by their user ID?”
Tell an agent destructive · confirm first
Remove user {user_id} from team {team_id}.
Kick {user_id} off team {team_id}.

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-teams-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-teams-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mattermost REST Teams 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: Teams
paths:
  /teams:
    get:
      tags:
      - Teams
      summary: List teams
      parameters:
      - in: query
        name: page
        schema:
          type: integer
          default: 0
      - in: query
        name: per_page
        schema:
          type: integer
          default: 60
      responses:
        '200':
          description: A page of teams
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Team'
      operationId: getTeams
      x-operation-id-source: derived
    post:
      tags:
      - Teams
      summary: Create a team
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Team'
      responses:
        '201':
          description: Team created
      operationId: postTeams
      x-operation-id-source: derived
  /teams/{team_id}:
    parameters:
    - in: path
      name: team_id
      required: true
      schema:
        type: string
    get:
      tags:
      - Teams
      summary: Get a team
      responses:
        '200':
          description: Team
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Team'
      operationId: getTeamsByTeamId
      x-operation-id-source: derived
    put:
      tags:
      - Teams
      summary: Update a team
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Team'
      responses:
        '200':
          description: Updated team
      operationId: putTeamsByTeamId
      x-operation-id-source: derived
    delete:
      tags:
      - Teams
      summary: Soft delete a team
      responses:
        '200':
          description: Deleted
      operationId: deleteTeamsByTeamId
      x-operation-id-source: derived
  /teams/{team_id}/patch:
    put:
      tags:
      - Teams
      summary: Patch a team
      parameters:
      - in: path
        name: team_id
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Team'
      responses:
        '200':
          description: Patched team
      operationId: putTeamsByTeamIdPatch
      x-operation-id-source: derived
  /teams/search:
    post:
      tags:
      - Teams
      summary: Search teams
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                term:
                  type: string
      responses:
        '200':
          description: Search results
      operationId: postTeamsSearch
      x-operation-id-source: derived
  /teams/{team_id}/members:
    parameters:
    - in: path
      name: team_id
      required: true
      schema:
        type: string
    get:
      tags:
      - Teams
      summary: List team members
      responses:
        '200':
          description: Members
      operationId: getTeamsByTeamIdMembers
      x-operation-id-source: derived
    post:
      tags:
      - Teams
      summary: Add a user to a team
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                team_id:
                  type: string
                user_id:
                  type: string
      responses:
        '201':
          description: Added
      operationId: postTeamsByTeamIdMembers
      x-operation-id-source: derived
  /teams/{team_id}/members/{user_id}:
    delete:
      tags:
      - Teams
      summary: Remove a user from a team
      parameters:
      - in: path
        name: team_id
        required: true
        schema:
          type: string
      - in: path
        name: user_id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Removed
      operationId: deleteTeamsByTeamIdMembersByUserId
      x-operation-id-source: derived
components:
  schemas:
    Team:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        display_name:
          type: string
        type:
          type: string
        description:
          type: string
        company_name:
          type: string
        allowed_domains:
          type: string
        invite_id:
          type: string
        allow_open_invite:
          type: boolean
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Personal Access Token or session token issued by /users/login.