Custom API (deprecated)
Quick-Start
const mindee = require("mindee");
// for TS or modules:
// import * as mindee from "mindee";
// Init a new client
const mindeeClient = new mindee.Client({
apiKey: "my-api-key"
});
// Load a file from disk
const filePath = "/path/to/the/file.ext";
const inputSource = new mindee.PathInput({ inputPath: filePath });
// Create a custom endpoint for your product
const customEndpoint = mindeeClient.createEndpoint(
"my-endpoint",
"my-account",
// "my-version" // Optional: set the version, defaults to "1"
);
// Parse it
const apiResponse = mindeeClient
.parse(
mindee.product.CustomV1,
inputSource,
{
endpoint: customEndpoint,
cropper: true
}
);
// Handle the response Promise
apiResponse.then((resp) => {
// print a string summary
console.log(resp.document.toString());
});Custom Endpoints
Field Types
Custom Fields
List Field
Classification Field
Attributes
Fields
Classifications
🧪 Custom Line Items
columnsToLineItems()
Customline
Last updated
Was this helpful?

