List default categories

GEThttps://api.omnifence.ai/api/v1/me/default-categories

Returns the default policy categories your account can switch off, with each category's default_* ID, display name, current enabled state, and the moderation types it applies to (text, image, video, video-frame, audio). The response never includes policy prompts. Child-safety categories always run and are not listed.

Send the returned IDs as keys in the body of PUT /api/v1/me/moderation-config to change their state. See per-account category toggles for how the toggles behave and for a request example.

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
categories array of object Yes
categories[].id string Yes
categories[].name string Yes
categories[].enabled boolean Yes
categories[].workflows array of string Yes
Example responseJSON
{
  "categories": [
    {
      "id": "string",
      "name": "string",
      "enabled": false,
      "workflows": [
        "string"
      ]
    }
  ]
}