GET /ocr/{request_id}/layouts
Retrieves the layout of a document as a protobuff (binary format) from OCR results after processing has completed. The layout can be used with the Fields endpoints for training, as well as to build a document viewer.
Headers
Authorization (required) - Requires the standard authentication header used in the system.
Parameters
There are no parameters needed for this endpoint.
-
request_id Path Required
the OCR request to return the document text. This is the OCR identifier returned from a successful POST /ocr response (request_id)
-
200 OKThe response successfully returned
-
403 ForbiddenInvalid or missing authentication token.
-
404 Not FoundThe OCR request does not exist, has been cleaned up, or not finished.
-
500 Internal Server ErrorSomething went wrong unrelated to the users request or the OCR failed and there is an error message.
Response Data
-
protobuff
(binary format)
Need Help?
Couldn’t find the information you were looking for or need more assistance?
Contact Support