Download Multiple Documents Data
Select the download format and specify the doc IDs in an array to get the downloaded information.
Authentication
x-api-keystring
API key issued by Staple.
AuthorizationBearer
JWT obtained from the login endpoint.
Request
This endpoint expects an object.
docIds
docType
language
includeConfidence
JSON and XML only — adds a "Confidence" block per document with scores for document fields, table column headers, table cells and each table (complex tables only). Has no effect on CSV and TXT. Must be true or false; any other value returns HTTP 400. Scores are 0–1 rounded to 2 decimals; null means unmeasured. Documents with no measured scores (predefined models such as Invoice, or documents scanned before confidence scoring existed) return "Confidence": null in JSON and an empty `<Confidence/>` element in XML — integrations must handle both forms. "Confidence" is a reserved key name.
Response
OK