Skip to main content

Node.js Setup

This page covers the Node.js-specific setup only. For authentication, see Authenticate with the API.

tip

Using Cursor, Claude, or another AI coding tool? Connect it to the Legalesign docs for context-aware help as you follow this tutorial.

Prerequisites

Node.js 18 or later is required. Check your version:

node --version

If not installed, go to https://nodejs.org.

Create a project

mkdir legalesign-example
cd legalesign-example
npm init -y

No additional packages are needed — Node.js 18+ includes fetch natively.

Continue with the shared quickstart

Follow the GraphQL Quickstart for:

  • the graphql request helper
  • your first authenticated query
note

In production, store tokens and API keys in environment variables or a secret manager rather than hardcoding them.

Next steps

  1. Continue to Make a Query
  2. Or jump to Send a Document

Export This Article

Save a copy of this page as PDF or plain text.