PII Categories
Control which PII categories are redacted per job with the pii_categories field on POST /v1/jobs.
Request format
pii_categories is sent as a JSON array string in multipart form data.
Example:
["Person","Email","PhoneNumber","Address"]
Supported categories
PersonEmailPhoneNumberAddressOrganizationDateIBANCreditCard
Behavior when omitted
If you omit pii_categories, account-level defaults from dashboard preferences are applied.
Selection strategy
- Start broad in regulated environments.
- Narrow categories only when false positives impact workflows.
- Validate output quality on representative real documents before production rollout.
Example request
curl -sS -X POST "https://api.redactpdf.ai/v1/jobs" \
-H "X-API-Key: YOUR_API_KEY" \
-F 'files=@/absolute/path/report.pdf;type=application/pdf' \
-F 'pii_categories=["Person","Email","Organization","Date"]'