Developer preview

Meet the extraction API.

Send a document. Get its contents back, with an explicit account of what needs another look.

This guide describes the current KenOCR API. You need a running KenOCR server and an issued API key. The examples use the local server at http://localhost:8710. This website does not process uploads or issue keys; public hosted access is not available yet.

Send your first document

Upload an image or PDF as multipart form data. Supply your key through X-API-Key or an Authorization: Bearer header.

Extract a document
curl http://localhost:8710/v1/extract \
  -H "X-API-Key: $KEN_API_KEY" \
  -F "file=@document.pdf" \
  -F "mode=balanced"

KEN_API_KEY is an environment variable holding a key issued by the operator of your KenOCR server. Replace document.pdf with your file.

Choose the right reading mode

ModeUse
fastUse a single reading path. A single read does not establish proof.
balancedUse the balanced extraction plan for the document.
proofRequest independent cross-checks. A request for proof does not guarantee the result can be proven.

Engine availability and document support depend on your server. Consult its interactive reference at /docs for the complete request schema and supported parameters.

Read the result carefully

OutputWhat it tells you
Pages and rowsThe extracted content. Preserve empty values, dashes and nulls as distinct facts.
FlagsAmbiguities, disagreements and other conditions that need attention.
provenWhether the required cross-checks actually established agreement. false does not by itself mean every value is wrong.
proven_reasonWhy proof was or was not established.

Long-running requests can become jobs. Follow the returned job information and use /v1/jobs/{id} to retrieve status rather than assuming every response is a completed extraction.

Other useful endpoints

EndpointPurpose
GET /v1/healthCheck server and pipeline availability.
GET /v1/modelsInspect the available engine catalogue.
POST /v1/compareCompare engine readings.
GET /openapi.jsonRead the server’s complete machine-readable API schema.
GET /docsOpen the interactive API reference on your server.

Authentication and scopes vary by endpoint. Your server’s API reference is the source of truth.

What’s next

KenOCR is being developed towards fast, affordable specialist APIs for invoices, handwriting and image-based PDFs. Those dedicated APIs and public pricing are future work; the current preview uses the extraction endpoint described here.

Discuss your documents and integration