Reprocess Document

Retry processing for a document whose processing failed. Existing chunks are cleared and processing restarts in the background; poll Get Document for the new status. Only documents with `processingStatus: "failed"` can be reprocessed.

POST/api/v1/knowledge/{id}/documents/{documentId}/reprocess
X-API-Key<token>

Your SteelEngine API key (personal, workspace, or organization). Create personal and workspace keys under Settings > API Keys. Create organization keys under Organization Settings > API Keys.

In: header

Path Parameters

id*string

Knowledge base ID.

documentId*string

Document ID.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/knowledge/string/documents/string/reprocess" \  -H "Content-Type: application/json" \  -d '{    "workspaceId": "string"  }'
{  "success": true,  "data": {    "documentId": "doc_abc123",    "processingStatus": "pending",    "message": "Document retry processing started"  }}