Skip to content
Moderation

Content Moderation Labels

The Copyleaks Text Moderation API provides a flexible and powerful solution for identifying and managing a wide range of harmful or risky content. Our API supports a comprehensive set of moderation labels, allowing you to tailor the moderation process to your specific community standards.

Label IDDescription
toxic-v1General toxic or harmful content that doesn’t fit other specific categories
profanity-v1Content containing explicit language, profanity, or vulgar expressions
hate-speech-v1Content promoting hatred, discrimination, or prejudice against individuals or groups
harassment-v1Bullying, intimidation, or targeted harassment content
self-harm-v1Content promoting self-injury, suicide, or other forms of self-harm
adult-v1Sexually explicit or suggestive material inappropriate for minors
violent-v1Content depicting, promoting, or threatening violence or dangerous activities
drugs-v1Content related to illegal drug use, drug trafficking, or substance abuse
firearms-v1Content related to weapons, firearms, or other dangerous implements
cybersecurity-v1Potential security threats, malicious content, or cyber attack material

When submitting text for moderation, include the desired labels in your request. You can specify all labels or only the ones relevant to your use case:

Request

POST https://api.copyleaks.com/v1/text-moderation/{scanId}/check

Headers

Content-Type: application/json
Authorization: Bearer YOUR_LOGIN_TOKEN

Body

{
"text": "Your text content to be moderated goes here.",
"language": "en",
"labels": [
{ "id": "toxic-v1" },
{ "id": "profanity-v1" },
{ "id": "hate-speech-v1" },
{ "id": "harassment-v1" },
{ "id": "self-harm-v1" },
{ "id": "adult-v1" },
{ "id": "violent-v1" },
{ "id": "drugs-v1" },
{ "id": "firearms-v1" },
{ "id": "cybersecurity-v1" }
]
}

Full details about the request and response structure can be found in the Text Moderation API Reference.