DocRouter Document icon

DocRouter Document

Manage documents in DocRouter.ai

Get

AI-generated

Summary

Retrieve a document by its ID from DocRouter.ai, optionally specifying whether to fetch the original file or its PDF version.

Inputs

  • Document ID (required) — Specify the unique ID of the document to retrieve.
  • File Type — Choose which version of the file to retrieve: the original file or the PDF version. Defaults to 'original'.

Output shape

A single item containing the document's metadata as JSON and its content as binary data within the property 'data'.

The returned item includes all document metadata except for the base64 content which is provided as binary data with appropriate mimeType and filename. Error handling follows standard node behavior and supports continueOnFail.

Links

Discussion