Skip to content
Discourse logo

Connectors / Marketing · HTTP Connector

Discourse integration and API

Update a topic, create a post and create a category in Discourse, and start a workflow when Discourse sends “Topic created”.

What can you do with Discourse on Tray.ai?

Discourse is open-source community forum software, hosted or self-run, where members discuss topics in categories and moderators manage users, groups, and badges. Tray.ai connects to Discourse through the HTTP Connector, so your workflows can call the Discourse API alongside the rest of your stack.

  • When Discourse sends “Topic created”, create a ticket in your help desk for unanswered questions.
  • Create a post with the release notes each time your team ships an update.
  • When Discourse sends “User created”, add the member to your email marketing list.
  • Create a user in Discourse for each new customer in your CRM.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://{defaultHost}

Set it up

Connect Discourse to Tray.ai

Each step uses Discourse's own API details, from its documentation.

Save Discourse's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://{defaultHost} as the base URL. Or paste a cURL example from Discourse's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “Get latest topics”

It's one of 24 documented actions, under Topics. The response comes back as data the next step can map into your other apps.

Start workflows from Discourse events

Give Discourse the URL of a Tray.ai webhook trigger. “Topic created” can then start a workflow, and so can 5 other events.

Workflows to build with Discourse

Connect Discourse with Jira, Salesforce and Slack

Each one uses actions and events from Discourse's own API documentation.

Create Jira issues from Discourse bug reports

When

Topic created

Then

  1. Get a topic in Discourse
  2. Create an issue in Jira
  3. Create a post in the topic with the issue link

With Jira

Create Discourse users for new Salesforce customers

When

An opportunity closes in Salesforce

Then

  1. Create a user in Discourse
  2. Add group members to the customer group

With Salesforce

Post new Discourse topics to Slack

When

Topic created

Then

  1. Get a topic in Discourse
  2. Post the topic title and link to the community channel in Slack

With Slack

Apps you can build on Discourse data

Internal tools your team can build with an AI assistant, each one using Discourse calls from its API documentation.

Unanswered topics queue

Lists the latest topics by category so the support team can find unanswered questions and post a reply.

New member approval board

Shows new sign-ups as they arrive so moderators can review each one and add them to the right group.

Community recognition tool

Lists active members and badges so the community manager can grant a badge to a top contributor.

Give your AI agents Discourse tools

Build an MCP server on Discourse in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Get latest topics
  • List latest posts
  • List categories
  • List users
  • List groups
  • List badges
  • Get a topic
  • Update a topic

What the Discourse API covers

6 resources and 24 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Topics

  • Get latest topics
  • Get a topic
  • Update a topic
  • Remove a topic
  • Update topic status

Posts

  • List latest posts
  • Create a post
  • Update a post
  • Delete a post

Categories

  • List categories
  • Create a category
  • Update a category

Users

  • List users
  • Create a user
  • Update a user
  • Suspend a user
  • Delete a user

Groups

  • List groups
  • Create a group
  • Add group members
  • Remove group members

Badges

  • List badges
  • Create a badge
  • Grant a badge to a user

Events Discourse can send to a Tray.ai webhook trigger

  • Topic created
  • Topic destroyed
  • Post created
  • Post destroyed
  • User created
  • User approved

Checked against Discourse's own documentation on 2026-10-22

docs.discourse.org

Frequently asked questions

What can a Tray.ai workflow do in Discourse?

The Discourse API documents 24 actions across 6 resources (Topics, Posts, Categories, Users, Groups, Badges). For example: Get latest topics; List latest posts; List categories. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Discourse?

The Discourse API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Discourse events can start a Tray.ai workflow?

Discourse sends 6 events to a webhook URL, for example: Topic created; Topic destroyed; Post created; Post destroyed; User created; User approved. A Tray.ai webhook trigger receives them and starts a workflow.

See Discourse working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.