Discourse Groups API

The Groups API from Discourse — 8 operation(s) for groups.

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).

Operations 9

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

POST /admin/groups.json Create a group · Create a group #
Ask an LLM
“How do I create a new group for a team or forum?”
“Can I set a group's visibility and default when creating it?”
Tell an agent
Create a group {group}.
Set up a new group with {group}.
DELETE /admin/groups/{id}.json Delete a group · Delete a group #
Ask an LLM
“How do I delete a group I no longer need?”
“Can I remove a group by its ID?”
Tell an agent destructive · confirm first
Delete group {id}.
Remove the group with ID {id}.
GET /groups/{name}.json Get a group by name · Get a group #
Ask an LLM
“How do I look up a group's details by its name?”
“What does a named group's description and visibility show?”
Tell an agent
Get the group {name}.
Show group {name} by name.
PUT /groups/{id}.json Update a group · Update a group #
Ask an LLM
“How do I change a group's description or default status?”
“Can I edit a group's settings after it's created?”
Tell an agent
Update group {id} with {group}.
Change the settings of group {id} to {group}.
GET /groups/by-id/{id}.json Get a group by ID · Get a group by id #
Ask an LLM
“How do I fetch a group's details when I only have its ID?”
“Can I resolve a group ID to its name and description?”
Tell an agent
Get group {id} by ID.
Show the group with ID {id}.
GET /groups/{name}/members.json List a group's members · List group members #
Ask an LLM
“Who are the members of a particular group?”
“Can I see every user in a group by name?”
Tell an agent
List the members of group {name}.
Show everyone in the {name} group.
PUT /groups/{id}/members.json Add members to a group · Add group members #
Ask an LLM
“How do I add several users to a group at once?”
“Can I invite new members to a group by username?”
Tell an agent
Add {usernames} to group {id}.
Invite {usernames} into group {id}.
DELETE /groups/{id}/members.json Remove members from a group · Remove group members #
Ask an LLM
“How do I take users out of a group?”
“Can I remove several members from a group by username?”
Tell an agent destructive · confirm first
Remove {usernames} from group {id}.
Kick {usernames} out of group {id}.
GET /groups.json List all groups · List groups #
Ask an LLM
“What groups exist on my Discourse site?”
“Can I get a list of every group?”
Tell an agent
List all groups.
Show every group on the site.

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/discourse:discourse-groups-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

discourse-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Discourse API Documentation Groups API
  x-logo:
    url: https://docs.discourse.org/logo.svg
  version: latest
  description: This page contains the documentation on how to use Discourse through API calls.
  license:
    name: MIT
    url: https://docs.discourse.org/LICENSE.txt
servers:
- url: https://{defaultHost}
  variables:
    defaultHost:
      default: discourse.example.com
tags:


# --- truncated at 32 KB (38 KB total) ---
# Full source: https://artifacts.apis.io/discourse/openapi/discourse-groups-api-openapi.yml