List Categories

discourse.list_categories
ActionBusiness appsconnection required

Calls the Discourse API with the connection's credentials.

List the forum's categories with their ids and topic counts.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Discourse
Secret shape
the API key, or {"api_key": "…"}
Config it needs
base_url, api_username
Resolved by
config.connection_id, else node.connection_id

Configuration

1 field, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
include_subcategories
Include each category's subcategories in the listing.
booleanNofalse——

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "include_subcategories": false
}

Output

One shape.

result

FieldTypeExample
categories
The categories Discourse returned.
array—
count
How many categories are in this response.
number—
can_create_category
True when the acting account may create categories.
boolean—
{
  "can_create_category": false,
  "categories": [],
  "count": 0
}

See List Categories run in a workflow.

In a technical demo we add the Discourse connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.