Flair is a labeling system that lets branch moderators attach visible badges to users and posts within their community. User flair appears next to a member’s username in the branch; link flair appears as a tag on posts. Moderators create flair templates that define the available text and CSS styling, and can choose whether members may assign their own flair or only moderators can set it. This page covers both flair types, template management, assignment workflows, and the API endpoints for programmatic flair management.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/artemis-development-group/artemis/llms.txt
Use this file to discover all available pages before exploring further.
Flair types
There are two distinct flair types in Artemis, defined as constants in the flair model:| Type | Constant | Where it appears |
|---|---|---|
| User flair | USER_FLAIR | Next to the user’s username in the branch |
| Link flair | LINK_FLAIR | As a tag label on a post within the branch |
FlairTemplate model, but are stored and indexed separately per branch.
Branch flair settings
Moderators control flair behavior through the following settings on the branch, accessible at/r/:branchname/about/edit:
| Setting | Default | Description |
|---|---|---|
flair_enabled | true | Whether user flair is shown in the branch |
flair_position | right | Where user flair appears relative to the username: left or right |
link_flair_position | “ (empty) | Where link flair appears on a post: left, right, or empty (hidden) |
flair_self_assign_enabled | false | Whether users can pick their own user flair from templates |
link_flair_self_assign_enabled | false | Whether users can pick link flair when submitting a post |
Flair templates
AFlairTemplate defines a reusable flair option with:
text— the display label (can be empty)css_class— a CSS class applied to the flair element for stylingtext_editable— whether users can customize the text when selecting this template
Managing flair templates
Moderators manage user flair templates at:- Add a template
- Edit a template
- Delete a template
Fill in the template fields
Enter the Flair text (optional), the CSS class (optional), and check Allow users to edit flair text if the text should be editable by members.
Assigning flair
User flair
- Moderator assigns
- User self-assigns
Moderators can set any user’s flair in their branch via the flair listing at
/r/:branchname/about/flair, or via the API:| Parameter | Type | Description |
|---|---|---|
name | string | The username to assign flair to |
text | string | Flair text |
css_class | string | CSS class to apply |
flair_template_id | string | UUID of an existing template (optional) |
Link flair
- Moderator assigns
- User self-assigns at submission
Moderators can set or update link flair on any post in the branch:
| Parameter | Type | Description |
|---|---|---|
link | string | Fullname of the post (e.g. t3_abc123) |
text | string | Flair text |
css_class | string | CSS class |
flair_template_id | string | UUID of an existing link flair template (optional) |
Bulk flair management
Moderators can set flair for multiple users at once by uploading a CSV:The
flaircsv endpoint updates each user’s flair in the branch. Users not included in the CSV are unaffected.Clearing flair
To remove flair from a user or post, send an emptytext and css_class with no flair_template_id:
CSS classes for flair styling
Thecss_class field on a flair template maps to a class on the flair <span> element in the branch stylesheet. Moderators define the appearance of each class in config/stylesheet.
Flair API reference summary
| Endpoint | Method | Purpose |
|---|---|---|
/api/flair | POST | Set flair on a user or link |
/api/flairlist | GET | List user flair in the branch |
/api/flaircsv | POST | Bulk-set user flair via CSV |
/api/flairtemplate | POST | Create or update a flair template |
/api/deleteflairtemplate | POST | Delete a specific flair template |
/api/clearflairtemplates | POST | Remove all templates of a given type |
/api/selectflair | POST | User self-assigns a flair template |
/api/setflairenabled | POST | Toggle flair display on or off for the calling user |