Registry / crm / connectwise-rest-api

connectwise-rest-api

JSON →
library1.2.1jsnpmunverified

A Node.js module for interacting with ConnectWise's REST API. Current stable version is 1.2.1, with active development. Provides a simple, Promise-based interface for authenticating and making requests to ConnectWise Manage (formerly LabTech). Supports TypeScript with included type definitions. Key differentiators: lightweight, minimal dependencies (only cross-fetch) and handles authentication automatically.

npm install connectwise-rest-api
INSTALL
IMPORT
SIG · CONNECTWISE-REST-A
C
connectwise-rest-api
crmjavascriptv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ConnectWiseAPIClient
import { ConnectWiseAPIClient } from 'connectwise-rest-api'
Default export is the class itself, but recommended to use named import. Requires ESM or TypeScript.

Shows how to create a client and make a GET request to the companies endpoint.

import { ConnectWiseAPIClient } from 'connectwise-rest-api'; const client = new ConnectWiseAPIClient({ companyId: process.env.CW_COMPANY_ID ?? '', publicKey: process.env.CW_PUBLIC_KEY ?? '', privateKey: process.env.CW_PRIVATE_KEY ?? '', clientId: process.env.CW_CLIENT_ID ?? '', }); (async () => { try { const companies = await client.get('/company/companies'); console.log(companies); } catch (error) { console.error(error); } })();
Debug
Known issues

No known issues recorded.

Errors
Common errors & fixes
fetch is not defined
Node.js versions below 18 do not have native fetch, but cross-fetch is included. This error may occur if the import fails.
fix
Ensure your Node.js version is 14+, or check that cross-fetch is correctly installed.
Upgrade
Version history
1.2.1latest on npm
Audit
Dependencies
cross-fetchrequiredfetch API polyfill for Node.js
Agent activity
43 hits · last 30 days
node
36
OpenAI (training)
1
Resources
connectwise-rest-api — npm install connectwise-rest-api · libregistry