Skip to content

Reprocess document

POST /v1/default/banks/{bank_id}/documents/{document_id}/reprocess

Re-run the retain pipeline on an existing document without changing its content. This deletes the existing memory units and re-extracts facts using the current engine configuration. Useful when the LLM model, chunking strategy, or extraction settings have changed.

Authentication required — include an Authorization: Bearer hsk_... header. See Authentication for details.

Path Parameters

NameTypeRequiredDescription
bank_idstringYes
document_idstringYes

Example Request

bash
curl -X POST 'https://api.hindsight.vectorize.io/v1/default/banks/your-bank-id/documents/your-document-id/reprocess' \
  -H 'Authorization: Bearer hsk_your_api_key'

Responses

200 — Successful Response

json
{
  "success": false,
  "operation_id": "Operation Id",
  "items_count": 0
}

422 — Validation Error

json
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "Message",
      "type": "Error Type",
      "input": null,
      "ctx": {},
      "url": "URL"
    }
  ]
}

Source: /v1/default/banks/{bank_id}/documents/{document_id}/reprocess