recipe · 5 fieldsdastavej
dastavej
extraction api.
A registered property document; owner, property address and the document date.
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 |
|---|---|---|---|
| Name of owner | owner_name | Name | — |
| Address line 1 | address_line_1 | Address | — |
| Address line 2optional | address_line_2 | Address | — |
| Area code | area_code | PIN code | PIN code |
| Date of dastavej | document_date | Date | — |
the apia dastavej in,
a dastavej 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_dastavej/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F file=@dastavej.pdf{ "status": "completed",
"document_type": "dastavej",
"fields": {
"owner_name": { "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 },
"document_date": { "value": …, "status": "present", "page": 1 }
} }