/extract-document
Create a new Job for extraction.
Create an Extraction Job
POST
https://waveline.ai/api/v1/extract-document
Creates a new job that extracts information from a file using the specified shape.
Headers
Name | Type | Description |
---|---|---|
Content-Type | String | Should be |
Authorization* | String |
|
Request Body
Name | Type | Description |
---|---|---|
fileName* | String | The name of the file. The suffix may be used by the AI for smarter extraction. |
contentType* | String | MIME type of the file, such as |
base64Content | String | Only accepts file sizes under 4.5MB, please use |
shape* | Shape | Object of type Shape that descibes what you want to extract |
contentUrl | String | |
textContent | String | A string containing the paintext contents to process. |
Example Usage
Here's an example of a JSON payload for the /extract-document
endpoint.
In this example, we extract the name and the total amount to pay from an invoice PDF file.
To send this payload to the /extract-document
endpoint, use the following curl
command:
You can get an API key here if you already have an account.
Additional Notes
If our system can't find the answer or is unsure of how to fill a field, we put
null
.Use accurate and descriptive names and descriptions for your shape elements. This helps us and will improve our performance.
Last updated