document in.
api out.

Upload a sample, name the fields you need, test on real files, publish an endpoint. patrapi reads PAN cards, sanction letters and light bills so your software doesn't have to.

POST /v1/workflows/wf_sanction/extractions
sanction-letter.pdfpage 1 / 1
[BANK] · MSME BRANCHRef: MSME/SL/0417

Date: 12/08/2026

To, M/s Shree Ambica Textiles, Surat

We are pleased to sanction a Term Loan of ₹ 48,50,000/- for purchase of machinery.

Repayment: 84 monthly instalments after a moratorium of 6 months.

Rate of interest: RLLR + 1.50% = 9.75% p.a.

Margin: 25%. Covered under CGTMSE: Yes.

200 okstatus: "completed"
{
"document_type": "loan_sanction_letter",
"fields": {
"sanction_date": "2026-08-12"present
"firm_name": "SHREE AMBICA TEXTILES"present
"loan_amount": 4850000present
"repayment_months": 84present
"rate_of_interest": "RLLR + 1.50% = 9.75% p.a."present
"margin": 25present
"application_date": nullnot_present
}
}

Simplified. Each field also returns its clean value, the page, the source text and where on the page it sits.

ready-made forpanaadhaargst reg-06udyamitrsanction letterindex iilight billgpcb+29 more →
how it works

sample file to live endpoint, in one sitting.

No annotation, no training run, no onboarding call. If you can describe a field to a new intern, you can build the workflow.

01

drop in a sample

A scan, a phone photo, a 40-page PDF. English, Hindi, Gujarati, or all three.

02

name your fields

Type them in plain words, or let the assistant read the sample and propose them.

03

test on real files

See each value next to the text it came from. Fix what's off, run again.

04

publish the api

A versioned endpoint and a key. Change the workflow later without breaking callers.

the assistant

not sure what to extract? ask.

It reads your sample, suggests fields with types and rules, and tests them on your files before you publish anything.

this is a udyam certificate. i need what the subsidy form asks for.
Added 9 fields: Udyam number, enterprise type (latest year), major activity, social category, date of commencement, district, NIC codes…tested on 3 samples · 9/9 found
evidence, not guesses

every field shows its work.

The value as printed, the clean version, the page, and the exact text it came from. When something isn't on the document, patrapi says so instead of making it up.

"loan_amount": {
  "value": "₹ 48,50,000/-",
  "normalized": 4850000,
  "status": "present",
  "page": 1,
  "source_text": "sanction a Term Loan of ₹ 48,50,000/-",
  "bbox": [0.12, 0.41, 0.88, 0.45]
}
present
found, with the source text to prove it.
not_present
not on this document. null, never invented.
unreadable
it's there, but the scan won't give it up.
conflicting
two different values on the page. flagged for a human.
recipes

works on any document.
starts with india's.

patrapi reads whatever you point it at. But nobody should start from a blank page, so we wrote recipes for the paperwork behind every MSME loan and machinery subsidy file.

A recipe is just a workflow someone already built. Use it as is, or fork it, add the field your bank asks for, and publish. It's yours.

who it's for
loan & subsidy consultants
every field an application needs, from the client's file into your tracker.
ca & tax practices
ITRs, GST certificates, bank statements and invoices, read before you open them.
lenders & nbfcs
KYC and business documents into your loan system, with evidence behind each value.
any team with a form
onboarding, claims, vendor checks. if someone retypes documents today, it's a workflow.
why it's simpler

no training. no setup fee.
no sales call.

There's nothing to train on your documents. Describe the fields, test on a few files, publish. And as the AI underneath improves, your workflows get better without you touching them.

compared onthe usual waypatrapi
getting startedlabel hundreds of samples, wait for trainingone sample, a list of fields
adding a fieldrelabel, retraintype it, test it, publish
when ai gets betteryour model stays where it wasyou get the upgrade
paying for itsetup fees, annual contracts, a sales callper document, from your first credit
for developers

two calls.
that's the integration.

Post a file to your workflow, poll for the result or wait inline. OpenAPI spec, idempotent uploads: send the same file twice, pay once.

  • versioned workflows, edit without breaking production
  • batches with excel export for non-developers
  • your own metadata, returned on every result
1 · send the document
curl https://api.patrapi.com/v1/workflows/wf_sanction/extractions \
  -H "Authorization: Bearer $PATRAPI_KEY" \
  -F file=@sanction-letter.pdf \
  -F metadata='{"application_id":"APP-2291"}'
2 · get the fields
curl https://api.patrapi.com/v1/extractions/ext_8Kq2… \
  -H "Authorization: Bearer $PATRAPI_KEY"

{ "status": "completed",
  "pages": 20,
  "fields": { "loan_amount": { "normalized": 4850000, … } },
  "metadata": { "application_id": "APP-2291" } }
every document, accounted for

see what went through.

Each extraction lands with its pages, the fields it found and its status. Anything flagged waits in a review queue for a human to approve or reject.

extractionsreviewbatches
sample data
workflowdocumentpages · creditsfieldsstatus
sanction letter v3APP-2291/sanction.pdf20 · 4 credits11 / 12completed
udyam v1APP-2291/udyam.jpg1 · 1 credit18 / 18completed
light bill v2APP-2288/bill-aug.pdf2 · 1 credit8 / 9needs review
pan cardAPP-2288/pan.jpg1 · 1 credit4 / 4processing
your clients' documents

not our training data.

gone after the job

Files are held encrypted only while they're read, then deleted. Never in logs or backups.

values stay out of logs

We record field names, counts and timings to run the service. Never the PAN number itself.

no surprise bills

Every result carries its page count, so you always know what a document cost before the invoice does.

pricing

pay per document.
nothing up front.

We first built this for a loan and subsidy consultant buried in paperwork. He didn't want a software project. He wanted to pay per document, only when it worked.

Most businesses want that. So that's how we price.

start free
50 credits

On sign-up, no card. Enough to run a real batch of KYC documents. Building is free too: the first 25 test and assistant runs on every workflow cost nothing (up to 100 a month).

start free
then
₹5/ credit

1 credit is a document up to 5 pages; each further 5 pages add one. Most KYC documents are a single credit. Volume discounts as you grow.

get an api key
a document likepagescreditscosts
PAN card11₹5
Udyam certificate31₹5
Income tax return82₹10
Loan sanction letter204₹20
questions

asked often.

does it handle hindi and gujarati?

Yes. School leaving certificates with handwritten Gujarati entries are one of our recipes. Values come back in the format you asked for.

my document isn't in the recipes.

Build it. Upload a sample, list the fields, test. Recipes are a head start, not a limit.

how are credits counted?

Per document, in bands of 5 pages: 1 credit up to 5 pages, then 1 more for each further 5. A PAN card is 1 credit; a 20-page sanction letter is 4. Every result carries its page count.

do test runs cost credits?

Not while you build. Try it and assistant runs are free for the first 25 on each workflow, up to 100 a month per account.

do i need to write code?

Not to build or test a workflow. Your software calls the API; no software? Upload a batch and download an Excel sheet.

bring one document.
leave with an api.