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.
Supported Labels
Section titled “Supported Labels”Label ID | Description |
---|---|
toxic-v1 | General toxic or harmful content that doesn’t fit other specific categories |
profanity-v1 | Content containing explicit language, profanity, or vulgar expressions |
hate-speech-v1 | Content promoting hatred, discrimination, or prejudice against individuals or groups |
harassment-v1 | Bullying, intimidation, or targeted harassment content |
self-harm-v1 | Content promoting self-injury, suicide, or other forms of self-harm |
adult-v1 | Sexually explicit or suggestive material inappropriate for minors |
violent-v1 | Content depicting, promoting, or threatening violence or dangerous activities |
drugs-v1 | Content related to illegal drug use, drug trafficking, or substance abuse |
firearms-v1 | Content related to weapons, firearms, or other dangerous implements |
cybersecurity-v1 | Potential 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/jsonAuthorization: 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.
Next Steps
Section titled “Next Steps” Moderate Text Content Learn how to use the Text Moderation API to scan and moderate text content.
Text Moderation API Reference Explore the complete API reference for text moderation, including request and response details.