v1

latestOpenAPI 3.0.02026-08-066425196.1 KB
Utilities

Fetch JSON data from S3 based on a provided URL.

This endpoint receives an S3 URL pointing to a resource, modifies the URL to target a JSON file instead of an image, and returns the content of the JSON file.

post/fetch-coords

Request body

s3Urlstring required

The S3 URL pointing to the original image file.

Example request

{
  "s3Url": "https://s3.amazonaws.com/bucket-name/path/to/file.jpg"
}

Response

JSON data successfully retrieved from the specified S3 URL.

averageConfidenceScorenumber

The average confidence score of the digital object transcription.

dataobject

The structure of the JSON data can vary depending on the content of the file.

Example response

{
  "data": {
    "DocumentMetadata": {
      "Pages": 1
    },
    "Blocks": [
      {
        "BlockType": "PAGE",
        "Text": "Example text"
      }
    ]
  }
}