Content Moderation

Validate URL

The validateUrls() function takes an array of urls as input. It returns a success response if the input passes validation and throws an error otherwise. It ensures that the URLs conform to the pre-defined list set in ASC console.

Here's an explanation of the function parameter:

  • urls: An array of URLs to be validated

Validate Text

The validateTexts() function takes an array of texts as input. It returns a success response if the input passes validation and throws an error otherwise. It ensures that the text does not contain any of the pre-defined blocked words set in the ASC console.

Here's an explanation of the function parameter:

  • texts: An array of texts to be validated

Last updated