Class ExtractorsClient


  • public class ExtractorsClient
    extends java.lang.Object
    • Constructor Detail

      • ExtractorsClient

        public ExtractorsClient​(ClientOptions clientOptions)
    • Method Detail

      • withRawResponse

        public RawExtractorsClient withRawResponse()
        Get responses with HTTP metadata like headers
      • list

        public ExtractorsListResponse list()
        List all extractors.

        Returns a summary of each extractor. Use GET /extractors/{id} to retrieve the full object including draftVersion.

      • list

        public ExtractorsListResponse list​(RequestOptions requestOptions)
        List all extractors.

        Returns a summary of each extractor. Use GET /extractors/{id} to retrieve the full object including draftVersion.

      • create

        public Extractor create​(ExtractorsCreateRequest request)
        Create a new extractor.

        You can optionally provide a generate object to automatically generate an extraction schema from sample documents using AI. generate is mutually exclusive with config and cloneExtractorId.

      • create

        public Extractor create​(ExtractorsCreateRequest request,
                                RequestOptions requestOptions)
        Create a new extractor.

        You can optionally provide a generate object to automatically generate an extraction schema from sample documents using AI. generate is mutually exclusive with config and cloneExtractorId.

      • retrieve

        public Extractor retrieve​(java.lang.String id)
        Get details of an extractor.
      • retrieve

        public Extractor retrieve​(java.lang.String id,
                                  RequestOptions requestOptions)
        Get details of an extractor.
      • update

        public Extractor update​(java.lang.String id)
        Update an existing extractor.
      • update

        public Extractor update​(java.lang.String id,
                                RequestOptions requestOptions)
        Update an existing extractor.