---
title: "Run OCR (Async)"
method: POST
path: "/ocr-async"
tags: ["ocr"]
---

# Run OCR (Async)

`POST /ocr-async`

## Request

- Base URL: `https://api.mercoa.com`
- URL: `https://api.mercoa.com/ocr-async`
- Auth: HTTP bearer

Run OCR on an Base64 encoded image or PDF. This endpoint will return immediately and the OCR will be processed asynchronously.

## Request body

- OcrOCRRequest
  - `mimeType` string, required: MIME type of the image. Supported types are image/png, image/jpeg, and application/pdf.
  - `image` string, required: Base64 encoded image or PDF. PNG, JPG, WEBP, and PDF are supported. 10MB max.
  - `vendorNetwork` 'all' | 'platform' | 'entity'
  - `entityId` string
  - `splitDocument` boolean: If true, attempt to split the document into subdocuments before processing. Default is false. If a document is split into subdocuments, the linked OCR jobs will be accessible via the linkedJobIds field on each OCR job response.

## Response `200`

Response with status 200

- OcrOCRAsyncResponse
  - `jobId` string, required

## Other responses

- `400`: Error response with status 400
- `401`: Error response with status 401
- `403`: Error response with status 403
- `404`: Error response with status 404
- `409`: Error response with status 409
- `500`: Error response with status 500
- `501`: Error response with status 501

---

[API](https://skmtc.dev/mercoa/apis/mercoa-2.md) - [All operations](https://skmtc.dev/mercoa/apis/mercoa-2/llms.txt) - [OpenAPI document](https://skmtc.dev/mercoa/apis/mercoa-2/revisions/00a8e403ae18?raw)
