doccape Anonymization icon

doccape Anonymization

Anonymize text and files using the doccape API

Actions2

File → Anonymize File

AI-generated

Summary

Upload a binary file to doccape for text and image PII anonymization, wait for processing, and return the anonymized file as binary output. Configure which PII classes to detect, how to replace text matches, and how to anonymize image matches; doccape requires API credentials.

Inputs

  • Input Binary Field Name (required) — Name of the incoming binary field containing the file; defaults to File.
  • Text PII Classes to Detect — Comma-separated text PII labels; defaults to PER,STR,LOC,ORG.
  • Use Pseudonyms — When enabled (default), replaces detected text PII with full pseudonyms based on the label. When disabled, suppresses it with four asterisks.
  • Image PII Classes to Detect — Comma-separated image PII labels; defaults to face.
  • Image Anonymization Type — How detected image PII is obscured: Mask (default), Blur, or Pixelate.
  • Polling Interval (Seconds) — How often to check processing status; defaults to 5 seconds, with a minimum of 5.
  • Polling Timeout (Minutes) — Maximum wait for completion; defaults to 10 minutes, with a minimum of 1.
  • Delete Document After Anonymization — Defaults to enabled. Attempts to delete the doccape document after completion and also after errors or timeouts.
  • Include Detected PIIs — Defaults to disabled. When enabled, adds detected PII details under json.piis; this payload is sensitive and should not be sent to chat models or agents.
  • Request Options — Optional batching, SSL certificate validation, proxy, and request timeout settings.

Output shape

One item containing the anonymized file in binary.data and a JSON object.

The JSON includes status: "COMPLETED" and deleted; it includes documentId when the document was not deleted, cleanupError if deletion failed, and piis when detected PII inclusion is enabled. Processing errors, timeout, or specified doccape failure statuses fail the operation; cleanup is attempted when deletion is enabled.

Links

Discussion