GET
/
api
/
v0
/
documents
/
{document_id}
/
text-blocks
[
  {
    "id": 123,
    "text": "string",
    "page_number": 123,
    "block_number": 123,
    "bboxes": [
      {
        "x0": 123.45,
        "y0": 123.45,
        "x1": 123.45,
        "y1": 123.45
      }
    ]
  }
]

Get document text blocks

Retrieves all text blocks associated with a document.

Path Parameters

integer
required

No description provided

Response

data
object

The response data for this endpoint.

[
  {
    "id": 123,
    "text": "string",
    "page_number": 123,
    "block_number": 123,
    "bboxes": [
      {
        "x0": 123.45,
        "y0": 123.45,
        "x1": 123.45,
        "y1": 123.45
      }
    ]
  }
]