cURL
curl --request POST \ --url https://api.traceloop.com/v2/evaluators/execute/prompt-injection \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "input": { "prompt": "What is the weather like today?" }, "config": { "threshold": 0.5 } } '
{ "has_injection": "safe" }
Detect prompt injection attempts
Request Body:
input.prompt
config.threshold
Type "Bearer" followed by a space and JWT token.
Request body
Show child attributes
OK
"safe"
Was this page helpful?