Get file layout
Get the OCR layout for a document in the current organization and workspace.
More details
More details
fileId is the document id returned by the files API. For a document split from a larger upload, the response contains only that document’s pages, renumbered from 1. Element ids retain their whole-file page identity.Bounding boxes are normalized [x0, y0, x1, y1] coordinates with the origin at the top-left of the displayed page. Rotation has already been applied.Capybara (Experimental) OCR model. Any other file returns 404 File not found, even when the fileId is correct. See Experimental model.Authorizations
API key for authentication
Path Parameters
The document's fileId, from the upload's files[] or GET /v1/files. For a file split into several documents, use the id of one document.
Response
The layout. pages and elements are filled only when status is ready.
Layout state. pages and elements are filled only when this is ready; poll again while it is pending.
ready, pending, failed, skipped, unavailable Version of this response shape.
"layout/1"
Number of pages in this document, or null when not known yet.
Processing run the layout came from, or null.
How to read the coordinates in this response.
Why the layout is not available, or null.
One entry per page.
Text blocks, tables and other elements on the pages.