POST
/
apps
/
{appId}
/
moderation
/
keywords
Add Keywords
curl --request POST \
  --url https://apimgmt.cometchat.io/apps/{appId}/moderation/keywords \
  --header 'Content-Type: multipart/form-data' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --form id=ID-of-the-word-list \
  --form 'name=Name of the word list' \
  --form 'description=Description of the word list' \
  --form category=word \
  --form 'searchTerms=AI-powered video moderation to detect unsafe content.'
{
  "data": {
    "id": "profane-word-list-1",
    "name": "profane word list",
    "description": "Profane word list",
    "category": "word",
    "isCSV": true,
    "searchTerms": [
      "\"a\"",
      "\"b\"",
      "\"c\""
    ],
    "createdAt": 1720023805,
    "updatedAt": 1720023805,
    "revisionId": "253179cf5f665257_profane-word-list-1_1",
    "active": true
  }
}

Headers

key
string
required

Authorization Key

secret
string
required

Authorization Secret

Path Parameters

appId
string
required

AppID in which the extension has to be enabled/disabled

Body

multipart/form-data

Response

200 - application/json

Created Keyword

The response is of type object.