Use Document Insights to submit a document, extract structured fields, and retrieve the result. Extractions are asynchronous: Plextera accepts the document first, then returns output when processing is complete.
The id returned by the create endpoints is the extraction identifier. Use it for GET /document-insights/extractions/{extractionId}, feedback, and event correlation.
You need:
fileId, an HTTPS document URL, or a file sent in the extraction request.tags for correlation data you want Plextera to return with the extraction.docTypeTags are optional string key-value pairs. Use them for values from your system, such as a case id, customer document id, or source system.
docType is a reserved tag. Send it only when Plextera has configured document-type routing for your workspace.
The complete extraction flow has three conceptual steps:
Depending on how you submit the document, the first two steps can be separate or combined.
Step 1 and Step 2 can be combined when you do not need a separate file upload call.
Use this when Plextera can download the document from a stable HTTPS URL.
There are two recommended ways to receive extraction output.
Call GET /document-insights/extractions/{extractionId} until the extraction reaches COMPLETED, FAILED, or REJECTED.
When status is COMPLETED, outputAvailable is true and output.fields contains the extracted field values.
Avoid tight polling loops. Poll with a delay and stop when the status is COMPLETED, FAILED, or REJECTED.
Create an event subscription if you want Plextera to send the result to your endpoint instead of polling.
Recommended event types:
document-insights.extraction.completeddocument-insights.extraction.faileddocument-insights.extraction.rejectedFor completed extractions, the event payload includes the same completed extraction model as GET /document-insights/extractions/{extractionId}, including output.
See Event Subscriptions for setup, headers, signatures, and retry behavior.
Use GET /document-insights/extractions to review recent extractions or build a status view.
Use the list endpoint for history and status checks. Use GET /document-insights/extractions/{extractionId} when you need the full output for one extraction.
Use feedback when an extracted value is incorrect or the extraction needs review.
message is required and can contain up to 1024 characters. fieldId is optional; include it when feedback applies to one extracted field.