Skip to main content

SDK Libraries

DocuTrust provides official SDK packages for embedding signing forms and template builders into your application, and for interacting with the DocuTrust API programmatically.

@docutrust/react

React components for embedding DocuTrust signing forms and template builders.

Installation

DocuTrustForm

Renders a signing form for a specific submitter.

DocuTrustBuilder

Renders the template builder for creating and editing templates.

Props Reference

DocuTrustForm Props

DocuTrustBuilder Props


@docutrust/vue

Vue 3 components for embedding DocuTrust signing forms and template builders.

Installation

DocuTrustForm

DocuTrustBuilder

Vue components use kebab-case for props (submitter-slug, with-title) and native Vue event syntax (@loaded, @completed).

@docutrust/react-native

React Native components for embedding DocuTrust signing forms and template builders in mobile applications. Components render inside a WebView.

Installation

react-native-webview is a required peer dependency.

DocuTrustForm

DocuTrustBuilder

React Native components accept an additional style prop for controlling the WebView container layout. Use flex: 1 to fill the available screen space.

@docutrust/angular

Angular components for embedding DocuTrust signing forms and template builders. Supports Angular 14 and above.

Installation

Module Setup

Import the DocuTrustModule in your Angular module:

DocuTrustFormComponent

DocuTrustBuilderComponent

Angular components use property binding syntax ([prop]="value") and event binding syntax ((event)="handler($event)").

@docutrust/n8n-nodes-docutrust

Custom n8n nodes for automating document signing workflows. Provides trigger and action nodes that integrate directly with the n8n visual workflow editor.

Installation

Install the community node in your n8n instance:
Or install via the n8n community nodes UI: Settings > Community Nodes > Install > @docutrust/n8n-nodes-docutrust.

Available Nodes

DocuTrust Trigger

Listens for webhook events from DocuTrust and starts a workflow when they fire. Supported trigger events:

DocuTrust Action

Performs operations against the DocuTrust API. Supported operations:

Credential Setup

  1. In n8n, go to Credentials > New Credential > DocuTrust API.
  2. Enter your DocuTrust instance URL and API token.
  3. Click Test to verify the connection.

Example Workflow

A workflow that creates a submission when a new row is added to Google Sheets, then sends a Slack notification when signing completes:
  1. Google Sheets Trigger — fires when a new row is added.
  2. DocuTrust Action — creates a submission with data from the spreadsheet row.
  3. DocuTrust Trigger — listens for form.completed events.
  4. Slack Action — posts a notification to a channel.

@docutrust/cli

A command-line tool for managing templates, submissions, and account settings from the terminal. Useful for scripting, CI/CD pipelines, and batch operations.

Installation

Configuration

Set your DocuTrust instance URL and API token:
The configuration is stored in ~/.docutrustrc:

Commands

Templates

Submissions

Bulk Operations

Settings

Use docutrust --help or docutrust <command> --help for detailed usage information on any command.

@docutrust/api

A typed TypeScript/JavaScript client for the DocuTrust REST API. Works in Node.js, Deno, Bun, and browser environments.

Installation

Configuration

Templates

Submissions

Download documents

Submitters

Webhooks

Users

Settings

Audit Events

Error Handling

TypeScript Types

The client exports TypeScript types for all request and response objects: