Lype

Welcome

Lype API documentation — HIPAA-compliant PHI removal from PDFs

Lype removes Protected Health Information (PHI) from PDF documents. You upload a PDF, Lype finds the PHI and deletes it from the file itself — not just covered with a box — and you download a PDF that looks the same as the original, minus the PHI.

How it works

  1. Upload a PDF with POST /api/attachments.
  2. Lype processes it in the background: it reads the PDF's text layer and OCRs every page (scans, images, handwriting), detects PHI, removes it, and re-checks the result.
  3. Download the redacted PDF with GET /api/attachments/{id}/download.

See How PHI removal works for what is removed and how.

Before you start

Getting started

  1. Quickstart: upload your first PDF and download the result.
  2. API reference: every endpoint, request and response.

Base URL

All API requests should be made to:

https://api.lype.com

On this page