Get extracted data from a document, filtered by view.
Returns the extracted field values from the latest successful extraction job.
Use the view parameter to specify which fields to include. If no view is
specified, the default view for the document type is used, or all fields
are returned if no default exists.
The document must have a completed extraction (status=‘completed’).
Args: document_id: Document ID view: View name to apply for field filtering include_metadata: If true, includes per-field metadata (confidence, page, etc.)
Returns: DocumentDataResponse with extracted field values.
Raises: HTTPException 404: Document not found HTTPException 400: Document not ready (extraction not completed) HTTPException 404: View not found
API Key authentication. Format: dk_test_
Document ID
View name to apply. If not specified, uses default view or returns all fields.
Include field-level metadata (confidence, page_number, etc.)
Extracted data filtered by view
Response for extracted document data (GET /v1/documents/{id}/data).
Returns extracted data filtered by the specified view.
Unique identifier for the document
Classified document type code
Name of the view used to filter the data
Extracted field values (filtered by view)
Per-field metadata (only if include_metadata=true)