Text Moderation
Moderate Text
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
The text to moderate
Minimum length:
1
Example:
"This is a very cool api"
Response
200
application/json
Response of the moderated text
The id of the text moderation
Example:
"27fbdc0b-b295-46ce-93f5-81b2fc08a381"
Whether the text is considered safe
Example:
true
Confidence of the safety of the text from 1-100
Example:
90
Sentiment of the text, either negative, neutral or positive
Available options:
positive
, negative
, neutral
Example:
"positive"
Sentiment score from 1-100 (negative, neutral, positive)
Example:
90
General topics the text depicts, lowercase and no punctuation
Example:
["politics", "sports"]
Example:
[{ "category": "sexual", "severity": 90 }]
The text with profanity replaced by *.
Example:
"This is a filtered text"
The original text
Example:
"This is the original text"
SHA-256 hash of the text
Example:
"93a08bd10cd367bf83f12ba6590fcaef2f8deec8a47ce4ce88a15c7dda325ffa"
The metadata of the request