recipe · 6 fieldsmantra certificate
mantra certificate
extraction api.
Certificate issued by MANTRA (Man-Made Textiles Research Association) for technical textile products.
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 |
|---|---|---|---|
| Mantra certificate number | certificate_number | Text | — |
| Firm name | firm_name | Name | — |
| Address line 1 | firm_address_line_1 | Address | — |
| Address line 2optional | firm_address_line_2 | Address | — |
| Area code | firm_area_code | PIN code | PIN code |
| Technical textile category | technical_textile_category | Text | — |
the apia mantra certificate in,
a mantra certificate 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_mantra/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F file=@mantra-certificate.pdf{ "status": "completed",
"document_type": "mantra_certificate",
"fields": {
"certificate_number": { "value": …, "status": "present", "page": 1 },
"firm_name": { "value": …, "status": "present", "page": 1 },
"firm_address_line_1": { "value": …, "status": "present", "page": 1 },
"firm_address_line_2": { "value": …, "status": "present", "page": 1 },
"firm_area_code": { "value": …, "status": "present", "page": 1 },
… 1 more
} }