Watchlist Terms (Remove)

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

Removes one or more terms from an existing watchlist.


Example Request

curl -X POST https://api.hivemoderation.com/api/v1/watchlist/remove \
  -H "Authorization: token <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "watchlist": "my-watchlist",
    "terms": ["example term", "another 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 strings listing terms to be removed.

Notes

  • Terms are normalized to lowercase before matching.
  • Terms not found in the watchlist are returned under non_existent_terms, and will not cause the request to fail.

Responses

Response Fields

FieldTypeAlways ReturnedDescription
messagestringYesHuman-readable result summary.
watchliststringYesThe watchlist API field name provided in the request.
removed_termsarrayYesTerms successfully removed from the watchlist.
non_existent_termsarrayYesTerms that were not found in the watchlist.
failed_termsarrayYesTerms that could not be processed due to an error.

Example Success (200 OK)

{
  "message": "Successfully removed from list. Some terms may not exist in list.",
  "watchlist": "my-watchlist",
  "removed_terms": ["example term"],
  "non_existent_terms": ["another term"],
  "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
400PARAM_REQUIREDMissing required parameter or invalid type.
403INVALID_API_KEYNo application matches the provided API key.