Discourse Posts API

The Posts API from Discourse — 5 operation(s) for posts.

GitHub OpenAPI

Operations 8

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 /posts.json List the latest posts across topics · List latest posts across topics #
Ask an LLM
“What are the newest posts across all topics?”
“Can I page through posts posted before a certain date?”
Tell an agent
List the latest posts across topics.
Show posts posted before {before}.
POST /posts.json Create a topic, post or private message · Creates a new topic, a new post, or a private message #
Ask an LLM
“How do I start a new topic with a post?”
“Can I send a private message to specific users?”
Tell an agent
Create a new topic titled {title} with raw text {raw}.
Send a private message to {target_recipients} saying {raw}.
GET /posts/{id}.json Get a single post · Retrieve a single post #
Ask an LLM
“How do I read one post by its ID?”
“Can I check how many likes a post has?”
Tell an agent
Get post {id}.
Show the content of post {id}.
PUT /posts/{id}.json Edit a single post · Update a single post #
Ask an LLM
“How do I edit a post I already wrote?”
“Can I stop a post edit from bumping the topic?”
Tell an agent
Update post {id} with {post}.
Edit post {id} to {post} without bumping the topic.
DELETE /posts/{id}.json Delete a single post · delete a single post #
Ask an LLM
“How do I delete a post?”
“Can I force a post to be permanently destroyed?”
Tell an agent destructive · confirm first
Delete post {id}.
Permanently destroy post {id} with force_destroy {force_destroy}.
GET /posts/{id}/replies.json List replies to a post · List replies to a post #
Ask an LLM
“What replies have been posted to a given post?”
“Can I see every reply to one post?”
Tell an agent
List replies to post {id}.
Show all replies on post {id}.
PUT /posts/{id}/locked.json Lock a post from being edited · Lock a post from being edited #
Ask an LLM
“How do I lock a post so it can't be edited?”
“Can I unlock a post by setting locked to false?”
Tell an agent
Lock post {id} by setting locked to {locked}.
Set locked to {locked} on post {id}.
POST /post_actions.json Like or flag a post · Like a post and other actions #
Ask an LLM
“How do I like a post?”
“Can I flag a post and its whole topic at once?”
Tell an agent
Perform action {post_action_type_id} on post {id}.
Like post {id} with action type {post_action_type_id}.

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-posts-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-posts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Discourse API Documentation Posts 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 (52 KB total) ---
# Full source: https://artifacts.apis.io/discourse/openapi/discourse-posts-api-openapi.yml