---
title: "Reindex With Ocr"
method: POST
path: "/api/admin/reindex-ocr"
tags: ["admin"]
---

# Reindex With Ocr

`POST /api/admin/reindex-ocr`

## Request

- Base URL: `https://api.sambodh-ias.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sambodh-ias.in/api/admin/reindex-ocr`
- Auth: none declared

Re-index specific documents using Gemini OCR for better heading detection.
Use for text-based PDFs with OCR encoding artifacts or split chapter titles.
Returns immediately; processing runs in the background.

## Headers

- `authorization` string, nullable

## Request body

- ReindexOcrRequest
  - `document_ids` string[], required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2.md) · [All operations](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/revisions/258843d1f806?raw)
