Get subreddit rules
Returns a subreddit's posting rules plus Reddit's site-wide rules, so you can check them before submitting and avoid a removal.
Use this alongside POST /v1/tools/validate/subreddit, which only confirms that a
subreddit exists and reports its basic posting settings.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
The ID of the Reddit account
Subreddit name (without the "r/" prefix)
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.connect.getSubredditRules({ path: { accountId: 'account_abc123', subreddit: 'string', },});console.log(data);{ "rules": [ { "kind": "link", "shortName": "No self-promotion", "description": "Posts that primarily promote your own product will be removed.", "violationReason": "Self-promotion", "createdUtc": 1611234567, "priority": 0 } ], "siteRules": [ "Spam", "Personal and confidential information" ]}List subreddit flairs
Returns available post flairs for a subreddit. Some subreddits require a flair when posting.
Set Reddit post flair
Applies a flair to a post the connected account already published. Use the GET on this path to list the available `flairTemplateId` values for the subreddit. Flair can also be set at submit time by passing `flairId` in `platformSpecificData` when creating the post. This endpoint is for changing it afterwards. The subreddit must allow users to select their own post flair. Setting flair on another user's post requires moderator permissions, which Zernio does not request.