curl --request POST \
--url https://{appid}.api-{region}.cometchat.io/v3/moderation/keywords \
--header 'Content-Type: multipart/form-data' \
--header 'apikey: <api-key>' \
--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.' \
--form file=@example-file
{
"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
}
}
Create a new keyword list for moderation.
curl --request POST \
--url https://{appid}.api-{region}.cometchat.io/v3/moderation/keywords \
--header 'Content-Type: multipart/form-data' \
--header 'apikey: <api-key>' \
--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.' \
--form file=@example-file
{
"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
}
}
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Created Keyword
The response is of type object
.
Was this page helpful?