recipe · 9 fieldsrent / leave and licence agreement
rent / leave and licence agreement
extraction api.
A stamped agreement between the property owner (licensor / lessor) and the user (licensee / lessee). Often long; the parties, premises, rent and term are usually on the first pages.
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 |
|---|---|---|---|
| Agreement date | agreement_date | Date | — |
| Owners of property | owners | Table | One row each: Owner name |
| User of property — name | user_name | Name | Licensee / lessee |
| Address line 1 | property_address_line_1 | Address | — |
| Address line 2optional | property_address_line_2 | Address | — |
| Area code | property_area_code | PIN code | PIN code |
| Monthly rental | monthly_rent | Amount (₹) | — |
| Duration start date | start_date | Date | — |
| Duration end date | end_date | Date | — |
the apia rent / leave and licence agreement in,
a rent / leave and licence agreement 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_rent/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F file=@rent-agreement.pdf{ "status": "completed",
"document_type": "rent_agreement",
"fields": {
"agreement_date": { "value": …, "status": "present", "page": 1 },
"user_name": { "value": …, "status": "present", "page": 1 },
"property_address_line_1": { "value": …, "status": "present", "page": 1 },
"property_address_line_2": { "value": …, "status": "present", "page": 1 },
"property_area_code": { "value": …, "status": "present", "page": 1 },
… 4 more
} }