connect
List subreddit flairs
Returns available post flairs for a subreddit. Some subreddits require a flair when posting.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
accountIdstring
Query Parameters
subredditstring
Subreddit name (without "r/" prefix) to fetch flairs for
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.getRedditFlairs({ path: { accountId: 'account_abc123', }, query: { subreddit: 'string', },});console.log(data);{
"flairs": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"text": "Discussion",
"textColor": "dark",
"backgroundColor": "#edeff1"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"text": "News",
"textColor": "light",
"backgroundColor": "#ff4500"
}
]
}Empty
{
"error": "Unauthorized"
}Empty