Discourse webhooks: subscribe to post and topic events

domain: discourse.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a webhook in Admin > API > Webhooks on the target Discourse instance, specifying the delivery URL, a secret key, content type, and the event categories to subscribe to (post events, topic events, user events, etc.).
  2. Verify each incoming payload's authenticity by checking the signature header (HMAC-SHA256 of the raw body using your webhook secret) before trusting it.
  3. Read the event-type header on each delivery to determine what happened (e.g. topic_created, post_created), since payload shape varies by event type.
  4. Respond quickly with a 2xx status — Discourse expects timely acknowledgment and can automatically disable webhooks that fail or time out repeatedly.
  5. Treat payloads as partial data: call back into the REST API to fetch the full topic/post/user by id whenever the webhook body doesn't include what you need.

Known gotchas

Related routes

Discourse REST API: create topics and posts programmatically
discourse.org · 5 steps · unrated
subscribe to MailerLite webhook events for subscribers and campaigns
developers.mailerlite.com · 5 steps · unrated
Subscribe to Pike13 Webhooks API topics to receive real-time class and enrollment change notifications
developer.pike13.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans