OCR

Run OCR (Async)

POST
https://api.mercoa.com/ocr-async

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

Query parameters

vendorNetwork
optional enum

Limit OCR vendor search to a specific network

Allowed values: allplatformentity
entityId
optional string

When using the Entity vendor network, specify the entity to use if. EntityId on an auth token will take precedence over this parameter.

Request

This endpoint expects an object.
mimeType
string

MIME type of the image. Supported types are image/png, image/jpeg, and application/pdf.

image
string

Base64 encoded image or PDF. PNG, JPG, and PDF are supported. 10MB max.

Response

This endpoint return an object.
jobId
string
POST
/ocr-async
curl -X POST "https://api.mercoa.com/ocr-async?vendorNetwork=all&entityId=string" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"mimeType": "string",
"image": "string"
}'
Response
{
"jobId": "string"
}