/invoices

post

Scan an invoice.

Example usage:

$ curl -X POST https://api.lucidtech.ai/v0/invoices \
  -H 'x-api-key: <your api key>' \
  -H 'Content-Type: application/json' \
  -d '{"documentId": "a50920e1-214b-4c46-9137-2c03f96aad56"}'

/receipts

post

Scan a receipt.

Example usage:

$ curl -X POST https://api.lucidtech.ai/v0/receipts \
  -H 'x-api-key: <your api key>' \
  -H 'Content-Type: application/json' \
  -d '{"documentId": "a50920e1-214b-4c46-9137-2c03f96aad56"}'

/documents

put

Create a document handle and get a pre-signed upload url.

Example usage:

$ curl -X PUT https://api.lucidtech.ai/v0/documents \
  -H 'x-api-key: <your api key>' \
  -H 'Content-Type: application/json' \
  -d '{"documentType": "image/jpeg", "region": "EU"}'

Upload binary document data to retrieved pre-signed url:

$ curl -X PUT https://eu.api.lucidtech.ai.s3.amazonaws.com/... \
  -H 'Content-Type: image/jpeg' \
  --data-binary @document.jpeg
post

Post feedback to the API for further improvement of the API.

Example usage:

$ curl -X POST https://api.lucidtech.ai/v0/documents/<document id> \
  -H 'x-api-key: <your api key>' \
  -H 'Content-Type: application/json' \
  -d '{"feedback": [{"label": "total_amount", "value": "140.50"}]}'