v1

latestOpenAPI 3.0.02026-07-14135106116.2 KB
documents

Schedule document reprocessing

This endpoint schedules (async) reprocessing for the given document; it will call the async processing with the given desired version name, similar to the async document upload but skipping OCR. It works asynchronously, so results need to be consulted by a separate call (or webhook)

Permission required: upload

post/documents/{document_id}/reprocess

Query parameters

namestring
reviewer'Human' | 'Machine'

If human repcrocessing is triggered, the last version will become the passed version. No processing is done.

Headers

X-Fieldsstring mask

An optional fields mask

Response

Success

feedbackobject
flag_for_reviewboolean
idstring required
inboxstring required
last_versionstring
meta_informationobject
original_filenamestring required
page_countinteger required
predictionobject
usage_dataobject
versionsobject[]

Example response

{
  "escalate": {
    "by": "abcdef123456789abcdef123"
  },
  "inbox": "abcdef123456789abcdef123",
  "lock": {
    "by": "abcdef123456789abcdef123"
  },
  "opened_by": [
    {
      "by": "abcdef123456789abcdef123"
    }
  ],
  "reject": {
    "by": "abcdef123456789abcdef123"
  },
  "submitted": {
    "by": "abcdef123456789abcdef123"
  }
}