Node.js SDK

API reference for the DocuTray Node.js SDK

This is the API reference for the DocuTray Node.js SDK.

Installation

npm install docutray

Quick Start

import DocuTray from 'docutray';

const client = new DocuTray(); // uses DOCUTRAY_API_KEY env var

const result = await client.convert.run({
  documentTypeCode: 'invoice',
  url: 'https://example.com/invoice.pdf',
});

Modules

Client

The main entry point for the SDK:

  • DocuTray - Client class with resource properties

Errors

Error handling classes:

Resources

API resource classes:

Types

Response and model types:

On this page