# I built Reclaim: an AI tool that finds medical billing errors and writes your appeal letters

> Source: <https://dev.to/kyisaiah47/i-built-reclaim-an-ai-tool-that-finds-medical-billing-errors-and-writes-your-appeal-letters-43ph>
> Published: 2026-06-14 13:20:35+00:00

Americans owe $220 billion in medical debt, and 80% of medical bills contain errors — duplicate charges, upcoded procedures, unbundling, wrongful denials, balance-billing violations, out-of-network surprises. I built Reclaim to catch those errors and handle the appeals process end to end.

You upload a photo or PDF of your medical bill or Explanation of Benefits. Gemini 2.5 Flash extracts every line item, CPT code, and charge. Reclaim then checks for:

If no errors are found, you pay nothing. If errors are found, a one-time $29 per-case unlock generates the appeal letter and sends it directly to your insurer's fax line via the Telnyx Fax API — with a delivery receipt and a 30-day response calendar.

Most people don't know they can appeal a medical bill, and fewer know how. The process requires specific legal language, relevant policy citations, and tight deadlines. I wanted to automate the parts that make it inaccessible: document parsing, error detection, letter drafting, fax sending, and deadline tracking.

The intake flow accepts photos or PDFs. Gemini 2.5 Flash handles extraction. Supabase Postgres stores cases under row-level security per user, with `medbill_*`

-prefixed tables. Auth is Google OAuth via Supabase Auth.

After errors are confirmed, Stripe Checkout handles the $29 unlock. The app generates the appeal letter with `pdf-lib`

— supporting internal first-level appeals, external review requests, and FDCPA cease-and-desist letters depending on the situation — then faxes it via Telnyx with a delivery receipt.

A Vercel cron job runs daily and sends reminder emails via Resend at 7 days, 3 days, 1 day, and overdue per appeal.

The dashboard uses what I'm calling a brutalist editorial design: black on cream, no rounded cards, typography-forward.

| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router) + React 19 |
| Language | TypeScript |
| AI | Gemini 2.5 Flash via `@google/generative-ai`
|
| Database | Supabase Postgres |
| Auth | Supabase Auth (Google OAuth) |
| Payments | Stripe Checkout |
| Fax | Telnyx Fax API |
| Resend | |
| Cron | Vercel cron |
`pdf-lib` + `pdf-parse`
|
|
| Styling | Tailwind CSS v4 |

Upload and analysis are always free. The $29 unlock only fires after errors are confirmed. 100% of any recovery is yours.

Repo: [https://github.com/kyisaiah47/reclaim](https://github.com/kyisaiah47/reclaim) (MIT)
