Node.js Esignature API Integration
SignThem provides an official TypeScript SDK for Node.js that wraps the full REST API. Install one package, create an API key, and send your first envelope for signing in under 10 minutes. The SDK ships with complete type definitions so your editor catches mistakes before they reach production.
Installation
npm install @signthem/sdkCreate and send an envelope
The example below creates an envelope, adds a recipient with a signature field, and sends it. The recipient receives an email with a secure signing link.
import SignThem from '@signthem/sdk';
const client = new SignThem(process.env.SIGNTHEM_API_KEY!);
// Create an envelope and attach a PDF
const envelope = await client.envelopes.create({
name: 'Service Agreement',
documents: [
{ url: 'https://yourapp.com/contracts/agreement.pdf' },
],
});
// Add a recipient with a signature field
await client.envelopes.addRecipient(envelope.id, {
email: '[email protected]',
name: 'Jane Smith',
fields: [
{ type: 'signature', page: 1, x: 100, y: 600 },
{ type: 'date', page: 1, x: 320, y: 600 },
],
});
// Send - recipient receives an email with a signing link
await client.envelopes.send(envelope.id);
console.log('Envelope sent:', envelope.id);
// Listen for completion via webhook, then download the signed PDF
const signedPdf = await client.envelopes.download(envelope.id);Why Node.js developers choose SignThem
Full TypeScript types
no guessing at API shapes in your editor
Promise-based API with async/await
works with any Node.js framework
Automatic retries on transient 5xx errors
Webhook helpers for HMAC-SHA256 signature verification
Official SDK available
The @signthem/sdk package is production-ready and actively maintained. Install it, set your API key, and you are ready to go.
Related resources
Ready to add e-signatures to your app?
Create an account to get your API key. Plans start at $6/mo. No usage fees on top.