Stable v1.0Last updated recently
Get Started

Retry Document Processing

Retry processing a previously uploaded document if it failed or needs reprocessing.

Retry Document Processing

Use this endpoint to retry the processing of a specific document that failed or requires reprocessing. You must provide the document ID in the path and authenticate the request using your API key.

Endpoint

POST/api/v1/documents/retry_documents/{document_id}

Retry processing for a document identified by its ID.

Request Authentication

All requests must be authenticated using an API key sent in thex-api-key header.

Authentication Header
x-api-key: YOUR_API_KEY_HERE

Path Parameters

Path Parameters

NameTypeDescription
document_idRequired
IntegerID of the document to retry processing.

Example Request

cURL – Retry Document
curl -X POST "/api/v1/documents/retry_documents/95" \
  -H "x-api-key: YOUR_API_KEY_HERE"

Response

The API returns metadata for the retried document along with its updated processing status.

200 OKDocument retry initiated successfully
Response Body
{
    "status": 200,
    "message": "Document processing restarted successfully.",
    "result": null
}

Error Responses

401 UnauthorizedMissing or invalid API key
Response Body
{
    "status": 401,
    "message": "API key required for API access",
    "result": null
}
404 ErrorDocument not found
Response Body
{ 
    "status": 404, 
    "message": "Document not found in FAILED status.", 
    "result": null 
}