/guess-shape
Create a new job for guessing a shape.
Last updated
Create a new job for guessing a shape.
Last updated
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.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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.
Content-Type
String
Should be application/json
.
Authorization*
String
Bearer <YOUR_API_KEY>
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 text/text
or application/pdf
.
base64Content
String
Only accepts file sizes under 4.5MB, please use contentUrl
for larger files.
contentUrl
String
textContent
String
A string containing the paintext contents to process.
Only provide one of the three content properties. A string containing a base64 representation of the document to process.
Only provide one of the three content properties. A URL pointing to your data. (e.g. https://example.com/invoice.pdf)
Only provide one of the three content properties.