---
title: "Detect Protected Material for Text"
method: POST
path: "/text:detectProtectedMaterial"
---

# Detect Protected Material for Text

`POST /text:detectProtectedMaterial`

A synchronous API for detecting protected material in the given text.

## Query parameters

- `api-version` string, required

## Request body

- DetectTextProtectedMaterialOptions — The request of detecting potential protected material present in the given text.
  - `text` string, required — The text to be analyzed, which may contain protected material. The characters will be counted in Unicode code points.

## Response `200`

The request has succeeded.

- DetectTextProtectedMaterialResult — The combined detection results of potential protected material.
  - `protectedMaterialAnalysis` TextProtectedMaterialAnalysisResult, required — The individual detection result of potential protected material.
    - `detected` boolean, required — Whether potential protected material is detected or not.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/cognitiveservices-contentsafety.md) · [All operations](https://skmtc.net/azure/apis/cognitiveservices-contentsafety/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/cognitiveservices-contentsafety/versions/d4969093cba0/schema)
