OCR

Run OCR (Async)

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

Query parameters

vendorNetworkenumOptional
Limit OCR vendor search to a specific network
Allowed values: allplatformentity
entityIdstringOptional
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
stringRequired
MIME type of the image. Supported types are image/png, image/jpeg, and application/pdf.
image
stringRequired
Base64 encoded image or PDF. PNG, JPG, and PDF are supported. 10MB max.

Response

This endpoint returns an object
jobId
string
POST
1curl -X POST "https://api.mercoa.com/ocr-async?vendorNetwork=all&entityId=string" \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "mimeType": "string",
6 "image": "string"
7}'
200
Successful
1{
2 "jobId": "string"
3}