Microsoft Azure

Azure AI Services: Contentsafety

Analyze harmful content

AI & machine learning#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Analyze harmful content

Endpoints 12

  • POSTAnalyze Image/image:analyze?api-version=stringA synchronous API for the analysis of potentially harmful image content. Currently, it supports four categories: Hate, SelfHarm, Sexual, and Violence.
  • GETGet All Text Blocklists/text/blocklists?api-version=stringGet all text blocklists details.
  • GETGet Text Blocklist By blocklistName/text/blocklists/:blocklistName?api-version=stringReturns text blocklist details.
  • DELETEDelete Text Blocklist By blocklistName/text/blocklists/:blocklistName?api-version=stringDeletes a text blocklist.
  • PATCHCreate Or Update Text Blocklist/text/blocklists/:blocklistName?api-version=stringUpdates a text blocklist. If the blocklistName does not exist, a new blocklist will be created.
  • POSTAdd or update BlocklistItems To Text Blocklist/text/blocklists/:blocklistName:addOrUpdateBlocklistItems?api-version=stringAdd or update blocklistItems to a text blocklist. You can add or update at most 100 blocklistItems in one request.
  • POSTRemove BlocklistItems From Text Blocklist/text/blocklists/:blocklistName:removeBlocklistItems?api-version=stringRemove blocklistItems from a text blocklist. You can remove at most 100 BlocklistItems in one request.
  • GETGet All BlocklistItems By blocklistName/text/blocklists/:blocklistName/blocklistItems?api-version=string&top=0&skip=0&maxpagesize=0Get all blocklistItems in a text blocklist.
  • GETGet BlocklistItem By blocklistName And blocklistItemId/text/blocklists/:blocklistName/blocklistItems/:blocklistItemId?api-version=stringGet blocklistItem by blocklistName and blocklistItemId from a text blocklist.
  • POSTAnalyze Text/text:analyze?api-version=stringA synchronous API for the analysis of potentially harmful text content. Currently, it supports four categories: Hate, SelfHarm, Sexual, and Violence.
  • POSTDetect Protected Material for Text/text:detectProtectedMaterial?api-version=stringA synchronous API for detecting protected material in the given text.
  • POSTShield Prompt/text:shieldPrompt?api-version=stringA synchronous API for shielding prompt from direct and indirect injection attacks.

API details

Authentication
An API key in the Ocp-Apim-Subscription-Key header
OAuth 2.0 (client credentials flow) with 1 scope
Operations
12 operations on 10 pathsPOST 6GET 4PATCH 1DELETE 1
Response formats
application/json
Description format
Swagger 2.0, API version 2024-09-01

How to test the Azure AI Services: Contentsafety in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Azure AI Services: Contentsafety collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the Ocp-Apim-Subscription-Key header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Analyze Image” (POST /image:analyze?api-version=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Azure AI Services: Contentsafety?

Analyze harmful content It is listed under AI & machine learning and has 12 endpoints.

Who publishes the Azure AI Services: Contentsafety?

It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.

How do I authenticate with the Azure AI Services: Contentsafety?

It accepts 2 methods: an API key in the Ocp-Apim-Subscription-Key header; OAuth 2.0 (client credentials flow) with 1 scope.

How many endpoints does the Azure AI Services: Contentsafety have?

12 operations on 10 paths (6 POST, 4 GET, 1 PATCH, 1 DELETE).

Is forking the Azure AI Services: Contentsafety free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.