Scan Asynchronous Document
Scan a asynchronous document using the Invoice model in Staple to receive the document ID extracted. The Read operation executes asynchronously. The time for completion of the text extraction process depends on the volume of the text and the number of pages in the document. After the document finished scanning, you can get data extracted by document ID via [https://api-gateway.staple.io/v1/documents/{docId}](https://api-gateway.staple.io/v1/documents/%7BdocId%7D)
The documents would be left in the queue specified for any further manipulation.
If you are looking to scan a file for a custom model you have developed, simply create a queue using that model and use the queue ID with this endpoint. It will extract data based on your queue instead of the invoice model.
Authentication
x-api-keystring
API key issued by Staple.
AuthorizationBearer
JWT obtained from the login endpoint.
Request
This endpoint expects a multipart form containing a file.
files
File to upload
qid
handwritten
Response
OK