Skip to main content
POST
/
v2
/
evaluators
/
execute
/
toxicity-detector
Execute toxicity-detector evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/toxicity-detector \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "text": "Thank you for your help with this project."
  },
  "config": {
    "threshold": 0.5
  }
}
'
{
  "is_safe": "safe"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request body

input
object
required
config
object

Response

OK

is_safe
string
Example:

"safe"