document in.
api out.

Upload a sample, name the fields you need, test on real files, publish an endpoint. patrapi reads invoices, IDs, statements and certificates so your software doesn't have to.

try it, no sign-upbrowse 40 recipes200 free pages · no card
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+31 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.

A request to the assistant: "this is a udyam certificate. i need what the subsidy form asks for." It replies with 9 proposed fields (Udyam number, enterprise name, enterprise type (latest year), major activity, social category, date of commencement, date of registration, district, NIC codes), tested on 3 samples, 9 of 9 found.
this is a udyam certificate. i need what the subsidy form asks for.
Added 9 fields from your sample, with types and rules:
Udyam numberenterprise nameenterprise type (latest year)major activitysocial categorydate of commencementdate of registrationdistrictNIC codes
tested on 3 samples · 9/9 found
Samplesudyam-ambica.pdfudyam-2.jpgudyam-3.pdf
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.

Nothing flagged goes through on its own. Results that need a look wait in a review queue for someone on your team to approve or correct, and every extraction is listed with its pages, fields and status.

recipes

works on any document.
start from a recipe.

patrapi reads whatever you point it at. A recipe is just a workflow someone already built: use it as is, or fork it, add the field you need, and publish. It's yours.

used byloan & subsidy consultantsca & tax practiceslenders & nbfcsany team that retypes documents
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 [email protected] \
  -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": "succeeded",
  "pages": 20,
  "fields": { "loan_amount": { "normalized": 4850000, … } },
  "metadata": { "application_id": "APP-2291" } }
pricing

1¢₹1 a page.
that's the price.

No tiers, no minimums, no sales call. Every result tells you how many pages it was.

start free
200pages

On sign-up, no card. About ten loan files. Building is free too: the first 25 test and assistant runs on every workflow cost nothing (up to 100 a month).

start free
then, as you go
1¢₹1/ page

Every page of a document counts. Failed documents and repeats of the same file are free.

get an api key
consultant plan
$30₹2,500/ month

5,000 pages every month, then 1¢₹0.50 a page. For firms that read files every day. Switch to it from billing whenever you like.

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 callby the page, from your first page
your clients' documentsnot our training data.

gone after the job

Files are held encrypted only while they're read, then deleted. Never written to logs.

values stay out of logs

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

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 is it priced?

By the page: 1¢ a page (₹1 in India), and every page counts. Failed documents and repeats of the same file are free, and every result carries its page count.

do test runs cost anything?

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.