recipes / business
recipe · 6 fields

mantra certificate
extraction api.

Certificate issued by MANTRA (Man-Made Textiles Research Association) for technical textile products.

use this recipeall recipesfrom ₹5 a document · 50 free credits
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.

fieldkeytypenotes
Mantra certificate numbercertificate_numberText—
Firm namefirm_nameName—
Address line 1firm_address_line_1Address—
Address line 2optionalfirm_address_line_2Address—
Area codefirm_area_codePIN codePIN code
Technical textile categorytechnical_textile_categoryText—
the api

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
  } }
more in business