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
PersonEmailPhoneNumberAddressOrganizationDateIBANCreditCardSignature(opt-in): handwritten signatures, initials and other handwriting
Signatures (opt-in)
Signature is never part of the defaults: send it by name to mask handwritten
signatures, initials and handwriting. It combines the text Document
Intelligence reads as handwritten, signature labels ("Signature", "By:",
"Unterschrift", "Sincerely,"...) and ink found near those labels on the page
image. A signature field left blank is not masked. Very large signatures
drawn over printed text and very noisy scans can still be missed, so review
signed pages in the Studio before sharing.
["Person","Email","Signature"]
Behavior when omitted
If you omit pii_categories, account-level defaults from dashboard preferences are applied.
Pinning specific terms
Categories control what kinds of data are detected. To force a specific term
to always be redacted (even if the AI misses it), or to keep a specific term
visible (even if the AI flags it), use pii_included_terms / pii_excluded_terms.
See Redaction rules.
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://www.redact-pdf.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"]'