v1

latestOpenAPI 3.1.02026-08-04552282508.9 KB
Precision Retry

Retry With Precision

Retry document processing with enhanced Gemini vision

This endpoint:

  1. Accepts a list of document IDs to retry
  2. Fetches original images from S3
  3. Processes with Gemini 2.5 Flash for best accuracy
  4. Updates database with improved structured data
  5. Returns updated results

Example request:

POST /api/precision/retry
{
    "document_ids": ["doc-id-1", "doc-id-2"],
    "batch_id": "batch-id-123",
    "apply_to_all_pages": false
}

Returns: List of results for each document processed

post/api/precision/retry

Request body

document_idsstring[] required
batch_idstring required
apply_to_all_pagesboolean
page_numbersinteger[] nullable
schema_fieldsobject[] nullable

Response

Successful Response

{"stackTrail":"paths:/api/precision/retry:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}