> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List a subreddit's post flair templates

> Fetches the user-selectable post flairs of a subreddit and whether the subreddit requires a flair to post.



## OpenAPI

````yaml openapi.json POST /api/v1/reddit/subreddits/flairs
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/reddit/subreddits/flairs:
    post:
      tags:
        - Reddit
      summary: List a subreddit's post flair templates
      description: >-
        Fetches the user-selectable post flairs of a subreddit and whether the
        subreddit requires a flair to post.

        Requires API key scope: `reddit:read`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedditSubredditFlairTemplatesInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedditUserSubredditFlairTemplatesResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    RedditSubredditFlairTemplatesInput:
      type: object
      properties:
        subreddit:
          type: string
          description: Subreddit name without the r/ prefix
        channelId:
          type: string
      required:
        - subreddit
    RedditUserSubredditFlairTemplatesResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          $ref: '#/components/schemas/RedditSubredditFlairTemplatesResponse'
      required:
        - success
        - data
    RedditSubredditFlairTemplatesResponse:
      type:
        - object
        - 'null'
      properties:
        subreddit:
          type: string
        is_flair_required:
          type: boolean
        isFlairRequired:
          type: boolean
        templates:
          type: array
          items:
            $ref: '#/components/schemas/RedditSubredditFlairTemplate'
        names:
          type: array
          items:
            type: string
        count:
          type: number
      required:
        - subreddit
        - is_flair_required
        - isFlairRequired
        - templates
        - names
        - count
      description: The RedditSubredditFlairTemplatesResponse.
    RedditSubredditFlairTemplate:
      type: object
      properties:
        id:
          type: string
        flair_template_id:
          type: string
        text:
          type: string
        flair_text:
          type: string
        text_editable:
          type: boolean
        flair_text_editable:
          type: boolean
        text_color:
          type:
            - string
            - 'null'
        flair_text_color:
          type:
            - string
            - 'null'
        background_color:
          type:
            - string
            - 'null'
        flair_background_color:
          type:
            - string
            - 'null'
        css_class:
          type: string
        flair_css_class:
          type: string
        mod_only:
          type: boolean
        max_emojis:
          type:
            - number
            - 'null'
        allowable_content:
          type:
            - string
            - 'null'
        flair_type:
          type:
            - string
            - 'null'
        type:
          type:
            - string
            - 'null'
        position:
          type:
            - number
            - 'null'
        flair_position:
          type:
            - number
            - 'null'
        richtext:
          type: array
          items:
            $ref: '#/components/schemas/RedditSubredditFlairRichtextSegment'
      required:
        - id
        - flair_template_id
        - text
        - flair_text
        - text_editable
        - flair_text_editable
        - text_color
        - flair_text_color
        - background_color
        - flair_background_color
        - css_class
        - flair_css_class
        - mod_only
        - max_emojis
        - allowable_content
        - flair_type
        - type
        - position
        - flair_position
        - richtext
    RedditSubredditFlairRichtextSegment:
      type: object
      properties:
        e:
          type: string
        t:
          type:
            - string
            - 'null'
        a:
          type:
            - string
            - 'null'
        u:
          type:
            - string
            - 'null'
      required:
        - e
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.