---
title: Detect Text Toxicity API
slug: detect-toxicity
url: https://apyhub.com/dosvak/service/detect-toxicity
provider: Dosvak LLC
categories: [Artificial Intelligence, "Security & Privacy"]
tags: [toxicity-detection, content-moderation, text-classification, harmful-content, sentiment-analysis]
auth: api_key
---

# Detect Text Toxicity API

Classify short text as toxic or not and get a label, score, and boolean verdict. Useful for moderating comments, chats, and user-generated content.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Detects whether the submitted text is toxic or harmful and returns a JSON object with… | 10 |

## About

## What it does
Toxicity Detector classifies a short text input as toxic or non-toxic. Send a `body.text` string up to 512 characters, and the response returns the original `text`, a `label`, a `score`, and a boolean `toxic` flag.

Use it when you need to screen user-generated content before it reaches a public surface. For example, you can check forum posts, comments, chat messages, support tickets, or profile bios and route flagged text to moderation or human review.

The API is intentionally small: one text field in, one classification result out. That makes it easy to add content moderation checks in a webhook, background job, or form submission flow without building and maintaining your own classifier.

Because the response includes both a boolean verdict and a numeric score, you can apply your own thresholding or escalation logic depending on how strict your moderation rules need to be.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/detect-toxicity
