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