cURL
curl --request POST \ --url https://api.enkryptai.com/guardrails/scan-pdf \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "file": "<string>", "detectors": {} } '
{ "summary": { "policy_violation": 0, "injection_attack": 0 }, "details": { "total_pages": 1, "pages_with_detections": 0, "detections": [] } }
Scan a PDF for security threats including injection attacks and policy violations
Base64-encoded PDF file content.
Show child attributes
Scan results for the provided PDF.
Summary counts of detections by detector type.
Detailed scan results including page-level information.