Document ExtractionAsk AIpost https://{endpoint}/v2/extractBody ParamsHeadersX-WORKER-EXTRACTOR-IDstringrequiredExtractor IDX-WORKER-IMAGE-URLstringURL of the image to be processed in jpg or png format, or URL of a pdf fileX-WORKER-ENCODINGstringenumDefaults to rawEncoding of the request body, allowed raw or base64rawbase64Allowed:rawbase64X-WORKER-PDF-DPInumberDefaults to 150DPI of the uploaded pdf fileX-WORKER-OCR-ENGINEstringenumOCR Enginegoogleazureazure-v4tesseractAllowed:googleazureazure-v4tesseractX-WORKER-ORIGINAL-FILE-NAMEstringoriginal file nameX-WORKER-ASYNCstringenumDefaults to falseFlag for using the asynchronous modetruefalseAllowed:truefalseX-WORKER-AUTO-ADJUST-IMAGE-SIZEstringenumDefaults to trueFlag for auto adjusting image size for better extraction result, it will take a longer for extraction if enabledtruefalseAllowed:truefalseX-WORKER-OUTPUT-OCRstringenumDefaults to falseFlag for returning OCR result in the response.yesnotruefalsepreserve-whitespaceAllowed:yesnotruefalsepreserve-whitespaceX-WORKER-PROCESSING-MODEstringenumDefaults to per-pageProcessing mode: If set, it will override the processing mode setting on the specified extractor. Please note that the per-file mode is not supported by all models. When it is not applicable, only the first page of the file will be processed.per-pageper-filemultiple-documents-per-pagemultiple-documents-per-fileAllowed:per-pageper-filemultiple-documents-per-pagemultiple-documents-per-fileX-WORKER-EXTRA-DATAstringlength ≤ 2048Pass extra data as ASCII string to FormX. For structured data, consider represent it as JSON. For string containing non-ASCII string, consider encode it with base64X-WORKER-IMPORT-TO-ACCURACY-CENTERstringenumDefaults to falseshould import to accuracy centertruefalseAllowed:truefalseResponses 200Success 202Accepted async extraction 4XXFailureUpdated about 1 month ago