v1

latestOpenAPI 3.1.02026-08-06282630.2 KB
Public

Rerun Documents

post/v1/rerun_documents/

Request body

doc_idsinteger[] required

Document IDs to rerun (1-500). All must belong to the caller's company.

override_extractionboolean

Force the rerun even if nothing has changed since the document's last extraction (normally a rerun is refused unless a parameter, instruction, or the template's extraction version changed). Only affects extraction (attributes/subattributes) — never forces OCR to re-run.

Example request

{
  "doc_ids": [
    123,
    456
  ]
}

Response

Successful Response

reruninteger required

Number of documents whose rerun was dispatched.

not_reruninteger required

Number of documents that were not rerun (ineligible, foreign, or missing).

rerun_doc_idsinteger[]

Document IDs whose rerun was dispatched.

Example response

{
  "errors": [
    {
      "error_code": "TASK_NOT_FOUND",
      "error_type": "invalid_id",
      "id_type": "task_id"
    }
  ]
}