/guess-shape
Create a new job for guessing a shape.
Suggest a Shape for a Document
POST
https://waveline.ai/api/v1/guess-shape
Automatically generates a suggested shape for the data in a file, which can be used for the shape
parameter in the /extract-document
endpoint.
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 |
contentUrl | String | |
textContent | String | A string containing the paintext contents to process. |
Example
Here's an example of a JSON payload for the guess-shape
endpoint:
In this example, we're requesting the API to generate a suggested shape for a PDF file.
To send this payload to the guess-shape
endpoint using the curl
command:
If you already have an account, you can get an API key here.
Last updated