Reprocess Document
document.reprocessRe-queue an already-uploaded document through the pipeline.
Use this to re-run extraction/PII detection/quality scoring on a document you've
already processed — e.g. after a document_type_hint change, without downloading and
re-uploading the original file. Returns immediately with a job_id — poll with
job.status the same way as after document.process.
Only works for documents whose original file is still stored on the server (locally
uploaded, not connector-sourced). If the file is no longer available, re-upload it
with document.process instead.
Args:
document_id: ID of a previously processed document.
pipeline_config: Optional pipeline config overrides, e.g. {"document_type_hint": "invoice"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ||
| pipeline_config | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| job_id | No | ||
| status | No | ||
| isError | No | ||
| poll_hint | No |