POST
/
autocompose
/
v1
/
profanity
/
evaluation
curl --request POST \
  --url https://api.sandbox.asapp.com/autocompose/v1/profanity/evaluation \
  --header 'Content-Type: application/json' \
  --header 'asapp-api-id: <api-key>' \
  --header 'asapp-api-secret: <api-key>' \
  --data '{
  "text": "This is a perfectly decent sentence."
}'
{
  "hasProfanity": false
}

Authorizations

asapp-api-id
string
header
required
asapp-api-secret
string
header
required

Body

application/json
The parameters for getting a evaluation result of the text typed by the user.
text
string

text to be checked for profanity

Response

200
application/json
Successfully fetched a evaluation result of the sentence.

ProfanityResult

hasProfanity
boolean

A boolean value describing if the text contains a curse word.

Example:

false