Create a new view for a document type.
Views define which fields are returned when querying document data. Fields must be valid for the specified document type’s schema.
If is_default is true, any existing default view for this document
type will be unset.
Returns: ViewResponse with created view details.
Raises: HTTPException 400: Invalid fields or duplicate name HTTPException 404: Document type not found
API Key authentication. Format: dk_test_
Request for creating a new view (POST /v1/views).
Document type code this view applies to
View name
1 - 100List of field names to include
1Optional description
500Whether this is the default view
Created view
Tenant view response.
Views define which fields from extracted data are returned when querying documents.
Unique identifier for the view
Document type code this view applies to
View name (e.g., 'accounting', 'compliance')
List of field names included in this view
Whether this is the default view for this document type
View creation timestamp (ISO 8601)
Last modification timestamp (ISO 8601)
Optional description of the view's purpose