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
graphqlrequest 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
- Continue to Make a Query
- Or jump to Send a Document