Discourse Categories API

The Categories API from Discourse — 5 operation(s) for categories.

GitHub OpenAPI

Operations 6

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 /categories.json Create a category · Creates a category #
Ask an LLM
“How do I create a new category?”
“Can I set a color, emoji or parent category when creating one?”
Tell an agent
Create a category named {name}.
Create category {name} with color {color} and emoji {emoji}.
GET /categories.json List categories · Retrieves a list of categories #
Ask an LLM
“What categories exist on my Discourse site?”
“Can I include subcategories when listing categories?”
Tell an agent
List all categories.
List categories including subcategories: {include_subcategories}.
PUT /categories/{id}.json Update a category · Updates a category #
Ask an LLM
“How do I rename or change a category's color?”
“Can I move an existing category under a parent category?”
Tell an agent
Rename category {id} to {name}.
Set category {id} color to {color} and emoji to {emoji}.
GET /c/{slug}/{id}.json List topics in a category · List topics #
Ask an LLM
“What topics are in a category?”
“Can I list topics by category slug and id?”
Tell an agent
List topics in category {slug} ({id}).
Show the topics of category {slug} with id {id}.
GET /c/{id}/show.json Show a category · Show category #
Ask an LLM
“How do I view one category's details?”
“What permissions and settings does a category have?”
Tell an agent
Show category {id}.
Get the details of category {id}.
GET /site.json Get site information · Get site info #
Ask an LLM
“What categories and subcategories does my site have?”
“Can I fetch the whole site info to see all categories?”
Tell an agent
Get site information.
Fetch all categories and subcategories from 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-categories-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-categories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Discourse API Documentation Categories 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 (77 KB total) ---
# Full source: https://artifacts.apis.io/discourse/openapi/discourse-categories-api-openapi.yml