POST
/
wordlist
/
{id}
/
words
Add words to wordlist
curl --request POST \
  --url https://moderationapi.com/api/v1/wordlist/{id}/words \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "words": [
    "<string>"
  ]
}'
{
  "addedCount": 123,
  "totalCount": 123,
  "addedWords": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of the wordlist to add words to

Body

application/json
words
string[]
required

Array of words to add to the wordlist. Duplicate words will be ignored.

Response

Words successfully added to wordlist

addedCount
number
required

Number of words added

totalCount
number
required

Total number of words in wordlist

addedWords
string[]
required

List of words that were added