Get moderation config
Retrieve the per-category moderation toggles for the authenticated client, plus a catalogue of all available categories with their display metadata. A category is enabled unless its key is explicitly set to false in enabled_categories.
https://api.omnifence.ai/api/v1/me/moderation-configReturns the moderation toggles for the authenticated client and a catalogue of the built-in
toggleable checks (nsfw and text) with their label, description, and icon. enabled_categories
also carries any default_* policy category you switched off; list those categories with
List default categories. The AI Adult General
check always runs on the categories that remain enabled, and child-safety categories cannot be
switched off.
See moderation categories for what each check does, and per-account category toggles for how the toggles behave.
Request#
Headers#
| Name | Type | Required | Description |
|---|---|---|---|
Authorization |
string | Yes | Your API key as a Bearer token: Bearer YOUR_API_KEY. |
Responses#
200 OK#
| Field | Type | Always present | Description |
|---|---|---|---|
enabled_categories |
object | Yes | |
enabled_categories.nsfw |
boolean | No | |
enabled_categories.text |
boolean | No | |
catalogue |
object | Yes | |
catalogue.nsfw |
object | Yes | |
catalogue.nsfw.label |
string | Yes | |
catalogue.nsfw.description |
string | Yes | |
catalogue.nsfw.icon |
string | Yes | |
catalogue.text |
object | Yes | |
catalogue.text.label |
string | Yes | |
catalogue.text.description |
string | Yes | |
catalogue.text.icon |
string | Yes |
{
"enabled_categories": {
"nsfw": false,
"text": false
},
"catalogue": {
"nsfw": {
"label": "string",
"description": "string",
"icon": "string"
},
"text": {
"label": "string",
"description": "string",
"icon": "string"
}
}
}