recipe · 8 fieldsindex copy
index copy
extraction api.
Sub-registrar's index extract of a registered property document, usually in Gujarati.
what it reads
the fields.
Rename any of them, drop the ones you don't need, or add the one your form asks for. Each comes back with the text it was read from.
| field | key | type | notes |
|---|---|---|---|
| Type of dastavej | document_type | Text | Nature of the registered document, e.g. sale deed |
| Dastavej amount | document_amount | Amount (₹) | Consideration / market value as printed |
| Address line 1 | address_line_1 | Address | — |
| Address line 2optional | address_line_2 | Address | — |
| Area code | area_code | PIN code | PIN code |
| Land area in sq. metre | land_area_sq_m | Number | — |
| Owner's name | owner_name | Name | — |
| Date of registration | date_of_registration | Date | — |
the apia index copy in,
a index copy in,
json back.
Publish the recipe as a workflow and send it files. Each field returns its value, a clean normalised version, its status, the page and the source text.
curl https://api.patrapi.com/v1/workflows/wf_index/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F file=@index-copy.pdf{ "status": "completed",
"document_type": "index_copy",
"fields": {
"document_type": { "value": …, "status": "present", "page": 1 },
"document_amount": { "value": …, "status": "present", "page": 1 },
"address_line_1": { "value": …, "status": "present", "page": 1 },
"address_line_2": { "value": …, "status": "present", "page": 1 },
"area_code": { "value": …, "status": "present", "page": 1 },
… 3 more
} }