MedBill Analyzer Uploads API
The Uploads API from MedBill Analyzer — 2 operation(s) for uploads.
The Uploads API from MedBill Analyzer — 2 operation(s) for uploads.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/medbillanalyzer-com:medbillanalyzer-com-uploads-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: MedBillAnalyzer Uploads API
version: 1.0.0
summary: Check a medical bill against the insurer’s Explanation of Benefits.
description: 'MedBillAnalyzer reconciles a medical bill against the Explanation of Benefits the patient’s plan issued for the same care, line by line, and reports where the two disagree.
Two things are worth knowing before you call it.
**The comparison is not done by a model.** A reader transcribes what is printed on the documents; fixed, deterministic rules decide what it means. The same documents always produce the same findings, and every finding names the rule that produced it.
**Never add the findings together.** `amount_in_question_cents` is already the de-duplicated total. Two findings routinely describe the same dollars from different angles — a line billed above the contracted rate is usually also part of a bill that asks for more than the plan says is owed — so summing them overstates the problem, in a letter the patient signs and sends.
**A clean result is not always an all-clear.** `how_completely_we_checked` is `partial` when the comparison could not be finished — no Explanation of Benefits, or fields the reader could not make out. A `partial` scan that found nothing means nobody looked, not that the bill is right, and telling the patient otherwise is how they end up paying a bill they could have disputed. When `you_can` is present, use it as written.
**Checking a bill takes time.** `check_medical_bill` reads the documents with a model and usually answers in 10–30 seconds, longer for a long itemized statement. Set a timeout of at least three minutes. Do not retry `check_medical_bill` automatically on a timeout: every call creates a new case and reads the documents again. The other operations answer immediately.
**There is no API key.** A case is reached by its id, which is 128 random bits and is issued only to whoever created it; treat it as a credential and do not log it. Deleting needs a second credential, below.
**Keep `delete_token`.** It comes back once, at creation, and only its digest is stored — it cannot be looked up or resent. Without it the case can only be waited out or removed by support.
This is not legal, medical, or financial advice. This report compares documents you supplied and helps you ask questions about them.'
contact:
email: support@medbillanalyzer.com
url: https://medbillanalyzer.com
servers:
- url: https://app.medbillanalyzer.com
tags:
- name: Uploads
paths:
/v1/uploads:
post:
operationId: create_upload
summary: Reserve a place to upload a document
description: 'The first half of the handoff for a document you cannot attach and cannot link to — above all an Explanation of Benefits inside an insurer portal, which only the patient can sign in to. Reserve a slot here, PUT the file to `upload_url`, then call check_medical_bill with `{ "upload_id": ... }` as `bill_document` or `eob_document`. Takes no body. The slot holds one file, expires after 15 minutes, and is held in memory only: nothing is written to disk.
**Access: Write.** Reserves a slot for one file, held in memory for 15 minutes.'
x-access: write
responses:
'201':
description: A slot, empty until the file is PUT into it.
content:
application/json:
schema:
type: object
required:
- upload_id
- upload_url
- expires_at
properties:
upload_id:
type: string
description: Pass this as `upload_id` in the document slot. It works once.
upload_url:
type: string
description: 'Where to PUT the file, as raw bytes. **Not a page**: opening it in a browser shows the patient nothing they can use, so do not hand it to them as a link. A path when the deployment does not know its public origin; resolve it against the server URL.'
expires_at:
type: string
format: date-time
next_step:
type: string
you_can:
type: string
'429':
description: 'Too many requests. Wait for `Retry-After` and try again. `error.code`: `too_many_requests`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: 'Something went wrong on our side. Not the caller’s fault. `error.code`: `internal`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: 'A dependency is unavailable, or the feature is not switched on for this deployment. `error.code`: `no_room`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Uploads
/v1/uploads/{upload_id}:
put:
operationId: put_upload
summary: Upload the document into a reserved slot
description: 'The second half of the handoff. The request body is the file itself — not JSON, not base64, not a form. PDF, JPEG, PNG, GIF or WebP, at most 12 MB. The type is read from the bytes, so the Content-Type header is not relied on. A slot takes one file; a second PUT to it is refused.
**Access: Write.** Puts one file into a reserved slot. Held in memory only, never written to disk.'
x-access: write
parameters:
- name: upload_id
in: path
required: true
description: The `upload_id` from `POST /v1/uploads`.
schema:
type: string
pattern: ^up_[A-Za-z0-9_-]+$
requestBody:
required: true
description: The file, as raw bytes.
content:
application/pdf:
schema:
type: string
format: binary
image/jpeg:
schema:
type: string
format: binary
image/png:
schema:
type: string
format: binary
image/gif:
schema:
type: string
format: binary
image/webp:
schema:
type: string
format: binary
application/octet-stream:
schema:
type: string
format: binary
responses:
'200':
description: The file is held. Name the slot in check_medical_bill.
content:
application/json:
schema:
type: object
required:
- upload_id
- received
properties:
upload_id:
type: string
received:
type: boolean
next_step:
type: string
'404':
description: 'No such case or upload slot: it expired, was used or deleted, or never existed. `error.code`: `no_such_upload`, `already_filled`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'413':
description: 'The request body is larger than we accept. `error.code`: `document_too_large`, `too_large`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: 'Too many requests. Wait for `Retry-After` and try again. `error.code`: `too_many_requests`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: 'Something went wrong on our side. Not the caller’s fault. `error.code`: `internal`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: 'A dependency is unavailable, or the feature is not switched on for this deployment. `error.code`: `no_room`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Uploads
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
description: A stable machine-readable code. Branch on this, never on the message text.
message:
type: string
description: One sentence, safe to show the person who uploaded the document.
next_step:
type: string
description: What you should do or say next, in plain English. Addressed to YOU, the caller — it says things like "Ask the patient for a clearer copy". Do not show it to the patient verbatim; use `you_can` for that.
you_can:
type: string
description: The same guidance written in the second person, safe to show the patient directly.