---
title: "Get document OCR text"
method: GET
path: "/documents/ocr-get"
tags: ["Document AI — DMS"]
---

# Get document OCR text

`GET /documents/ocr-get`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/documents/ocr-get`
- Auth: HTTP bearer

Returns the OCR-extracted text of a document. Contains text per page with confidence scoring.

## Query parameters

- `pofid` string, required
- `locale` string
- `page` integer
- `include_bounding_boxes` boolean
- `format` 'json' | 'text'

## Response `200`

Success

- object
  - `processing_time` string, required: Verarbeitungszeit (Format: 123.45ms)
  - `result` object
    - `text` string
    - `pages` unknown[]
      - unknown
    - `has_ocr` boolean

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
