Docutray icon

Docutray

Process documents and search knowledge bases with Docutray services

Actions3

Document → Identify

AI-generated

Summary

Identify a document by sending image data to Docutray's identify endpoint and returning the recognition result.

Inputs

  • inputMethod — Choose how to provide the image: Binary Data, Base64, or URL.
  • binaryPropertyName — Name of the binary property containing the image data (default: "data").
  • imageBase64 — Base64 encoded image data.
  • imageUrl — URL of the image to process.
  • documentTypeCodes (required) — One or more document type codes to limit identification; can be selected from a list or entered manually.
  • imageContentType — MIME type of the image (e.g., image/jpeg, image/png).
  • documentMetadata — Additional metadata for the document in JSON format.

Output shape

A JSON object representing the identification result (or an array of such objects when processing multiple items).

The operation returns whatever the Docutray /identify API returns; typically a single JSON payload containing detected document type, confidence, and any metadata. If multiple input items are processed, an array is returned.

Examples

Example 1: Identify a document uploaded as binary data from a previous node

Set Input Method to Binary Data, leave Binary Property Name as "data", select required Document Type Codes, optionally provide Image Content Type and Document Metadata.

Example 2: Identify a document provided as a Base64 string

Set Input Method to Base64, provide the Base64 Image value, optionally set Document Type Codes, Image Content Type, and Document Metadata.

Example 3: Identify a document via a public URL

Set Input Method to URL, enter the Image URL, optionally specify Document Type Codes and Document Metadata, and optionally set Image Content Type.

Discussion