Watchlist Terms (Add)

POST https://api.hivemoderation.com/api/v1/watchlist/add

Adds one or more terms to an existing watchlist.


Example Request

curl -X POST https://api.hivemoderation.com/api/v1/watchlist/add \
  -H "Authorization: token <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "watchlist": "my-watchlist",
    "terms": [
      { "term": "example term", "notes": "Optional context for this term." }
    ]
  }'

Request

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesAPI key from Hive Moderation Dashboard (per-application).
Content-TypestringYesSubmit JSON data in the request body.

Request Body Parameters

ParameterTypeRequiredDescription
watchliststringYesThe unique API field name identifying the target watchlist.
termsarrayYesArray of term objects to add (see Term Object below).

Term Object

FieldTypeRequiredDescription
termstringYesThe term to be added.

Maximum 1024 characters.
notesstringNoOptional context for the term.

Maximum 1024 characters.

Notes

  • Terms are normalized to lowercase before matching.
  • If a term already exists in the watchlist, any existing notes will be overwritten by the given value.

Responses

Response Fields

FieldTypeAlways ReturnedDescription
messagestringYesHuman-readable result summary.
watchliststringYesThe watchlist API field name provided in the request.
added_termsarrayYesTerm objects successfully added to the watchlist.
pre_existing_termsarrayYesTerm objects that already exist in the watchlist.
failed_termsarrayYesTerms that could not be processed due to an error.

Example Success (200 OK)

{
  "message": "Successfully added to list.",
  "watchlist": "my-watchlist",
  "added_terms": [
    { "term": "example term", "notes": "Optional context for this term." }
  ],
  "pre_existing_terms": [],
  "failed_terms": []
}

Example Error Response (400 Bad Request)

{
  "error": true,
  "status": 400,
  "error_code": "PARAM_REQUIRED",
  "message": "watchlist is required.",
  "show_alert": false
}

Common Errors

Status CodeError CodeDescription
403PARAM_REQUIREDMissing required parameter or invalid type.
400INVALID_API_KEYNo application matches the provided API key.