Amazon Comprehend · Schema

ClassifyDocumentRequest

ClassifyDocumentRequest schema

Machine-LearningNatural Language ProcessingNLPText Analysis

Properties

Name Type Description
Text object
EndpointArn object
Bytes object
DocumentReaderConfig object
View JSON Schema on GitHub

JSON Schema

openapi.yml-classify-document-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-comprehend/refs/heads/main/json-schema/openapi.yml-classify-document-request-schema.json",
  "title": "ClassifyDocumentRequest",
  "description": "ClassifyDocumentRequest schema",
  "type": "object",
  "properties": {
    "Text": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CustomerInputString"
        },
        {
          "description": "The document text to be analyzed. If you enter text using this parameter, do not use the <code>Bytes</code> parameter."
        }
      ]
    },
    "EndpointArn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DocumentClassifierEndpointArn"
        },
        {
          "description": "The Amazon Resource Number (ARN) of the endpoint. For information about endpoints, see <a href=\"https://docs.aws.amazon.com/comprehend/latest/dg/manage-endpoints.html\">Managing endpoints</a>."
        }
      ]
    },
    "Bytes": {
      "allOf": [
        {
          "$ref": "#/components/schemas/SemiStructuredDocumentBlob"
        },
        {
          "description": "<p>Use the <code>Bytes</code> parameter to input a text, PDF, Word or image file. You can also use the <code>Bytes</code> parameter to input an Amazon Textract <code>DetectDocumentText</code> or <code>AnalyzeDocument</code> output file.</p> <p>Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you. </p> <p>The maximum length of this field depends on the input document type. For details, see <a href=\"https://docs.aws.amazon.com/comprehend/latest/dg/idp-inputs-sync.html\"> Inputs for real-time custom analysis</a> in the Comprehend Developer Guide. </p> <p>If you use the <code>Bytes</code> parameter, do not use the <code>Text</code> parameter.</p>"
        }
      ]
    },
    "DocumentReaderConfig": {
      "allOf": [
        {
          "$ref": "#/components/schemas/DocumentReaderConfig"
        },
        {
          "description": "Provides configuration parameters to override the default actions for extracting text from PDF documents and image files."
        }
      ]
    }
  },
  "required": [
    "EndpointArn"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/openapi.yml-classify-document-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.