SDK Documentation

Official client libraries for Node.js and Python

Languages

Node.js · Python

API Version

v1 stable

License

MIT

Support

GitHub Issues

Install the official DealSuite SDK from npm:

terminal
npm install @dealsuite/sdk

Get your API key from Developer Portal → API Keys.

javascript
import DealSuite from "@dealsuite/sdk";

const ds = new DealSuite({
  apiKey: process.env.DEALSUITE_API_KEY,
  // Optional: "sandbox" | "production" (default: "production")
  environment: "production",
});
⚠️ Never commit your API key to source control. Use environment variables.

Manage your sales pipeline programmatically.

javascript
// List all deals
const { data: deals } = await ds.crm.deals.list({
  stage: "proposal",
  limit: 50,
});

// Create a deal
const deal = await ds.crm.deals.create({
  title: "Acme Corp — Enterprise",
  lead_email: "ceo@acme.com",
  amount_usd: 48000,
  stage: "proposal",
  probability: 65,
});

console.log(deal.id); // "deal_abc123"