Legacy prompt injection detection
DeprecatedDEPRECATED - Legacy endpoint for prompt injection detection. Please migrate to /v2/guard endpoint. Note: Only the last message is screened for detections.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
input
Text to scan or messages array
flag_uncertain
Whether to flag non-English text, code, etc.
Response
Prompt injection detection results
model
Currently always ‘lakera-guard-1’
results
List of detection results
dev_info
Build information