---
title: "Retry With Precision"
method: POST
path: "/api/precision/retry"
tags: ["Precision Retry"]
---

# Retry With Precision

`POST /api/precision/retry`

## Request

- Base URL: `https://api.qomplement.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qomplement.com/api/precision/retry`
- Auth: HTTP bearer

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

## Request body

- PrecisionRetryRoutesRetryRequest
  - `document_ids` string[], required
  - `batch_id` string, required
  - `apply_to_all_pages` boolean
  - `page_numbers` integer[], nullable
  - `schema_fields` object[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-09** `6fe617c112ef`: 1 info
  - the endpoint scheme security `HTTPBearer` was added to the API

[Operation history](https://skmtc.dev/qomplement/apis/qomplement-api/changes/api/precision/retry/post.md)

---

[API](https://skmtc.dev/qomplement/apis/qomplement-api.md) - [All operations](https://skmtc.dev/qomplement/apis/qomplement-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qomplement/apis/qomplement-api/revisions/6fe617c112ef?raw)
