Legacy prompt injection detection

Deprecated

DEPRECATED - Legacy endpoint for prompt injection detection. Please migrate to /v2/guard endpoint. Note: Only the last message is screened for detections.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
inputstring or list of objectsOptional
Text to scan or messages array
flag_uncertainbooleanOptionalDefaults to false

Whether to flag non-English text, code, etc.

Response

Prompt injection detection results
modelstring or null

Currently always ‘lakera-guard-1’

resultslist of objects or null
List of detection results
dev_infoobject or null
Build information