Discourse Admin API

The Admin API from Discourse — 10 operation(s) for admin.

Operations 11

GET /admin/users/{id}.json Get a user by id #
DELETE /admin/users/{id}.json Delete a user #
PUT /admin/users/{id}/activate.json Activate a user #
PUT /admin/users/{id}/deactivate.json Deactivate a user #
PUT /admin/users/{id}/suspend.json Suspend a user #
PUT /admin/users/{id}/silence.json Silence a user #
PUT /admin/users/{id}/anonymize.json Anonymize a user #
POST /admin/users/{id}/log_out.json Log a user out #
POST /user_avatar/{username}/refresh_gravatar.json Refresh gravatar #
GET /admin/users.json List users #
GET /admin/users/list/{flag}.json List users by flag #

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-admin-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

discourse-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Discourse API Documentation Admin 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 (36 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/discourse/refs/heads/main/openapi/discourse-admin-api-openapi.yml