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
- Upload a PDF with
POST /api/attachments. - 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.
- Download the redacted PDF with
GET /api/attachments/{id}/download.
See How PHI removal works for what is removed and how.
Before you start
- Accept your account's Business Associate Agreement before uploading documents that contain PHI.
- Requests are authenticated with an API key.
Getting started
- Quickstart: upload your first PDF and download the result.
- API reference: every endpoint, request and response.
Base URL
All API requests should be made to:
https://api.lype.com