capabilities.work

Classify Then Extract

A 6-step recipe with Mindee. We can help you get access.

Recipe · 6 steps

Classify Then Extract

with Mindee

Classify a document, then extract structured fields from it.

  1. Send the document to the asynchronous classification queue to discover its type.
  2. Poll the shared jobs endpoint until the classification job reports Processed or Failed.
  3. Read the predicted document type from the completed classification inference.
  4. Now that the document type is known, send the same file to the extraction queue against the chosen extraction model.
  5. Poll the shared jobs endpoint until the extraction job reports Processed or Failed.
  6. Retrieve the completed extraction inference and read the structured fields parsed from the document.
What you'll need to have ready
  • authorization: Mindee API key sent in the Authorization header.
  • classificationModelId: UUID of the classification utility model.
  • extractionModelId: UUID of the extraction model to apply after classification.
  • file: The document file to upload as binary form data.
  • filename: Optional filename to associate with the uploaded document.
For your developer

Arazzo workflow mindee:classify-then-extract, 6 operations: Enqueue_Classification_Product_Inference_v2_products_classification_enqueue_post → Get_Job_Status_v2_jobs__job_id__get → Get_classification_Product_Result_v2_products_classification_results__inference_id__get → Enqueue_Extraction_Product_Inference_v2_products_extraction_enqueue_post → Get_Job_Status_v2_jobs__job_id__get → Get_Extraction_Product_Result_v2_products_extraction_results__inference_id__get. Specs on APIs.io.