Docs / Tools / redact-pdf

Redact PDF API

Permanently remove boxed text and image pixels, then add a watermark, stamp, or page rotation.

Web UI: Redact PDF

Authentication

Bearer API key required on every request.

Request

POST https://api.omnicap.app/v1/redact-pdf

Content-Type: multipart/form-data

  • file (file, required)

    PDF to edit.

  • ops (string, required)

    JSON array of edits. Rects are PDF points [x0, y0, x1, y1], origin bottom-left. Page indexes are 0-based. Types: redact, rotate (90, 180, 270), watermark, stamp. Supports type regex with pattern for batch text destruction.

  • stamp (file)

    PNG, JPEG, or WebP placed in the stamp box.

  • password (string)

    Password if the PDF is locked.

Response

Mode: sync — binary file body

Headers: X-Page-Count

Examples

curl

curl -X POST "https://api.omnicap.app/v1/redact-pdf" \
  -H "Authorization: Bearer $OMNICAP_API_KEY" \
  -F "file=@/path/to/document.pdf" \
  -F "ops=YOUR_OPS"

Node.js (fetch)

const form = new FormData();
form.append("file", fileBlob, "document.pdf");
form.append("ops", "YOUR_OPS");

const res = await fetch("https://api.omnicap.app/v1/redact-pdf", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.OMNICAP_API_KEY}` },
  body: form,
});
const out = await res.arrayBuffer();

Billing

1 billable unit(s) per successful call.

Changelog

  • 2026-10-24: Initial public release.
  • 2026-10-28: Added regex/pattern batch redaction ops.