Typless is an easy-to-use invoice OCR REST API powered by AI
Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.
The Typless API offers a streamlined solution for extracting data from documents using machine learning. With its capability, you can automate the process of pulling out specific information from various document types, such as invoices, receipts, or identity documents, turning unstructured data into structured and actionable data points.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
typless: {
type: "app",
app: "typless",
}
},
async run({steps, $}) {
const data = {
"document_type_name": `simple-invoice`,
}
return await axios($, {
method: "post",
url: `https://developers.typless.com/api/start-training`,
headers: {
"Accept": `application/json`,
"Authorization": `Token ${this.typless.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id
# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS