POST
/
moderate
/
text

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
value
string
required

The text you'd like to analyze. We recommend to submit plain text or HTML

Required string length: 1 - 100000
doNotStore
boolean

Do not store the content. The content won't enter the review queue

authorId
string

The author of the content.

contextId
string

For example the ID of a chat room or a post

metadata
object

Any metadata you want to store with the content

Response

200 - application/json
status
string
required

Success if the request was successful

request
object
required

Information about the request

content_moderated
boolean
required

Whether the content was moderated or not. Same as content !== original

unicode_spoofing
boolean
required

Whether the content is using look-alike characters. Often used by spammers.

data_found
boolean
required

Whether any entity matchers found data for the content

flagged
boolean
required

Whether the content was flagged by any models

original
string
required

The original content

content
string
required

The content after moderation. With all mask replacements applied and look-alike characters replaced with the original characters.

contentId
string

The ID of the content. Only returned if the content was stored.

nsfw
object

The NSFW model output if enabled in your project. Read more at https://docs.moderationapi.com/models/nsfw

toxicity
object

The toxicity model output if enabled in your project. Read more at https://docs.moderationapi.com/models/toxicity

quality
object

The spam model output if enabled in your project. Read more at https://docs.moderationapi.com/models/spam

sentiment
object

The sentiment model output if enabled in your project. Read more at https://docs.moderationapi.com/models/sentiment

propriety
object

The propriety model output if enabled in your project. Read more at https://docs.moderationapi.com/models/propriety

email
object

The email entity matcher output if enabled in your project. Read more at https://docs.moderationapi.com/models/email

phone
object

The phone entity matcher output if enabled in your project. Read more at https://docs.moderationapi.com/models/phone

url
object

The url entity matcher output if enabled in your project. Read more at https://docs.moderationapi.com/models/url

address
object

The address entity matcher output if enabled in your project. Read more at https://docs.moderationapi.com/models/address

name
object

The name entity matcher output if enabled in your project. Read more at https://docs.moderationapi.com/models/name

username
object

The username entity matcher output if enabled in your project. Read more at https://docs.moderationapi.com/models/username

profanity
object

The profanity entity matcher output if enabled in your project. Read more at https://docs.moderationapi.com/models/profanity

sensitive
object

The sensitive numbers entity matcher output if enabled in your project. Read more at https://docs.moderationapi.com/models/sensitive

wordlist
object

The wordlist entity matcher output if enabled in your project. Read more at https://docs.moderationapi.com/models/word

wordlists
object[]

The wordlist entity matcher outputs if enabled in your project. Read more at https://docs.moderationapi.com/models/word

{key}
any

Was this page helpful?