Upload and process lab PDF

Upload a lab result PDF for processing. Returns immediately with a jobId.

Two Upload Methods:

  1. Base64 Upload (files ≤ 10MB): Include pdfFile with base64-encoded PDF.
    Returns 202 Accepted with jobId and status "queued".

  2. Presigned URL Upload (files > 10MB, up to 50MB): Omit pdfFile field.
    Returns 200 OK with a presigned S3 URL. Then PUT your PDF directly to that URL.
    Processing starts automatically when upload completes.

Processing Steps:

  1. Language detection (English validation)
  2. PHI detection and redaction
  3. Lab result extraction with panel grouping
  4. LOINC code mapping for standardization
  5. UCUM unit code mapping for standardization

Processing Time: 2-5 minutes depending on page count

Webhook Notification: Provide a webhookUrl to receive push notifications
when processing completes. See WebhookPayload schema for payload structure.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string

Base64-encoded PDF file (max 10MB after encoding).
Omit this field for files > 10MB to receive a presigned URL instead.

string

Optional original filename for display purposes

date

Optional patient date of birth for verification (YYYY-MM-DD)

uri

Optional webhook URL to receive notifications when processing completes.
Must be a publicly accessible HTTPS endpoint.

boolean
Defaults to false

If true, immediately reject the document when any PHI is detected,
without performing redaction or extraction. The original PDF and all
intermediate files are deleted. Use this when PHI presence is
unacceptable rather than needing redaction.

When rejected, the job status will be "rejected_phi" and the webhook
event will be "job.rejected_phi".

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json