Process a file
To extract data from a file, you can either:- Upload a file directly
- Or send text content for processing
File Upload
Send a POST request to/workflows/:id/run/ with the file or text content as multipart/form-data:
The API returns a
202 Accepted response code, indicating that the processing request has been accepted but the extraction is not yet complete.Text processing
To process text directly, send a POST request with the text as multipart/form-data:Requirements for file / text upload
- The file must be sent as
multipart/form-data. - The file field name must be
file. - Only one file can be processed per request. If both
fileandtextare provided, only the file will be processed. - The file must be a binary file. URLs and base64 encoded strings are not supported.
Refer to Obtaining Data Extraction Results to learn how to retrieve the extracted data.
