Skip to main content
POST
/
v2
/
evaluators
/
execute
/
profanity-detector
Execute profanity-detector evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/profanity-detector \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "text": "This is a clean and professional message."
  }
}
'
{
  "has_profanity": false
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Request body

input
object
required

Response

OK

has_profanity
boolean
Example:

false