List Subreddit Rules
reddit.list_subreddit_rules
ActionChat & messagingconnection required
Calls the Reddit API with the connection's credentials.
Read the rules a subreddit publishes, plus the site-wide rules.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Secret shape
- {"client_id": "…", "client_secret": "…", "refresh_token": "…"}
- Config it needs
- user_agent, subreddit
- 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.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
subreddit Subreddit to act on, with or without the 'r/' prefix. Falls back to the connection's default subreddit when left blank. | string | No | — | — | python |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"subreddit": "python"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
rules The subreddit's own rules, in the order it lists them. | array | — |
count How many subreddit rules there are. | number | — |
site_rules Reddit's site-wide rules. | array | — |
subreddit The subreddit the rules belong to. | string | — |
{
"count": 0,
"rules": [],
"site_rules": [],
"subreddit": ""
}See List Subreddit Rules run in a workflow.
In a technical demo we add the Reddit connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.