npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-netsapiens

v0.2.5

Published

n8n Community Node for connecting to and querying NetSapiens-based VoIP phone switch/PBX.

Downloads

545

Readme

n8n-nodes-netsapiens

This is an n8n community node. It lets you interact with the NetSapiens API in your n8n workflows.

NetSapiens is a Voice over IP (VoIP) phone switch software provider that provides a REST API (the ns-api) that can be used to manage and query resources in a NetSapiens environment.

n8n is a fair-code licensed workflow automation platform.

Installation

n8n Cloud

Not yet verified for use with n8n Cloud.

Self-Hosted n8n

Follow the installation guide in the n8n community nodes documentation.

# From your n8n installation directory
npm install n8n-nodes-netsapiens
# Restart n8n

You can install this node as a community node on your self-hosted n8n instance from the UI (if community nodes are enabled) since it's published to npm as n8n-nodes-netsapiens, with the following steps:

  1. In your n8n instance, go to SettingsCommunity Nodes
  2. Click Install and enter: n8n-nodes-netsapiens
  3. Click Install to add the node to your instance

Operations

This node is primarily driven by a bundled OpenAPI specification. In most cases you:

  • Select a resource (an API grouping)
  • Select an operation (an API endpoint action)

The node then renders fields for the endpoint parameters.

In addition, the node includes a Raw -> Request operation that lets you call arbitrary endpoints directly when you need full control.

The node also includes custom Authentication/JWT (JSON Web Token) operations:

  • Validate JWT — accepts a token input and validates it against GET /jwt using that provided token for the request.
  • Validate JWT Format — decodes and validates a JWT token locally without server contact, outputting decoded payload fields, format validation, and expiration status.

The node also includes a custom Authentication/User Credentials -> Validate operation. This operation validates a username and password against the NetSapiens OAuth2 token endpoint, returning a structured success or failure result without using the token for subsequent API calls. When using API Key credentials, you must provide OAuth2 Client ID and Client Secret separately.

Operations that require NetSapiens API v45+ are tagged with "(v45+)" in the dropdown and include a pre-flight version check that prevents calling unsupported endpoints on older servers.

NetSapiens provides the API JSON Schema as part of their documentation, which this node uses to generate the basic node interface. The node also implements a number of overrides to handle NetSapiens-specific details and add additional functionality and affordances.

Read operations are substantially better tested and usable than write calls, which may require build custom JSON objects for crate and update requests initially.

Credentials

This node supports two authentication methods within a single NetSapiens API credential, selectable via the Authentication Method dropdown:

API Key (Bearer Token) — default

Uses API Keys (bearer tokens) as the authentication method.

  • Server: Your NetSapiens API hostname (without protocol)
  • Bearer Token: An API key (bearer token) used for API requests
  • Base URL Override (optional): Override the full base URL. If empty, the node defaults to https://{server}/ns-api/v2.

Obtain an API key from your NetSapiens provider if you are a Reseller user, or obtain the API key directly from your NetSapiens instance if you have administrator access.

Only NetSapiens API version 2 supports API keys, and this node only connects to API version 2 endpoints (though the API key would be valid for API version 1 as well, for versions of NetSapiens that support API version 2 credentials).

OAuth2 (Password Grant)

Uses the OAuth2 password grant flow (POST /ns-api/v2/tokens) to obtain an access token using client credentials and a username/password.

  • Server: Your NetSapiens API hostname (without protocol)
  • Client ID: OAuth2 client identifier. Format varies by installation (e.g., 86716.apiscripts, teammateapi.uptimetm).
  • Client Secret: OAuth2 client secret
  • Username: User login for OAuth2 authentication. Typically user@domain or [email protected], but format may vary by installation.
  • Password: Password for the OAuth2 user

The node automatically manages token caching and refresh. Tokens are cached and reused until they expire (with a 60-second buffer), at which point a new token is fetched automatically. If the v2 token endpoint is not available, the node falls back to the legacy /ns-api/oauth2/token/ endpoint.

OAuth2 credentials support restricted users — domain and user dropdowns automatically fall back to the user's own domain/user when the account lacks permission to list all domains or users.

JWT credential-login flows are not supported as node credentials, though the node includes a dedicated Validate JWT operation that accepts a JWT value as input for one request.

NetSapiens, as of this writing, runs a Developer Sandbox where you can test API usage if you would like.

NetSapiens provides an API v1 Migration to v2 reference to review so you can determine differences between the API versions if you're familiar with version 1.

NetSapiens also provides an MCP server that you can add to your favorite AI tool (it's unauthenticated and open, only requiring a URL) that lets AI gather API documentation in real-time to build queries and workflows.

Compatibility

  • Minimum n8n version: Developed and tested with version 2.0.3+ but will likely work with several prior versions.
  • Tested with: Local development via n8n-node dev
  • Tested with: NetSapiens Version 44.3.2

Note: The node uses the NetSapiens v45.0 OpenAPI spec and automatically identifies operations that are only available on v45+ servers. These operations are tagged with "(v45+)" in the dropdown and include a pre-flight version check. Operations from the original v2 spec work on both 44.x and 45.x servers. You can also use the Raw API Request option to call endpoints not yet implemented as dedicated operations.

Usage

Basic usage

  • Resource: Select an API resource grouping.
  • Operation: Select the specific endpoint action.
  • Parameters:
    • Path and query parameters appear as node fields.
    • If the endpoint has a request body, a Body JSON field is shown.

Raw request

If you need an endpoint that is not represented (or you want full control), use the Raw API request:

  • Resource: Raw
  • Operation: Raw API Request

Then set:

  • Method
  • Endpoint (for example: /domains)
  • Query Parameters
  • Body (for non-GET/non-DELETE requests)

Development

From n8n-nodes-netsapiens/:

  • npm install installs dependencies.
  • npm run generate regenerates generated/openapi.ts from openapi/NetSapiens.v2.3.1.0.openapi.json.
  • npm run build runs code generation and builds the node.
  • npm run dev runs the node in development mode directly, launching n8n, or:
  • Use npm link to link the node to n8n (and then npm link n8n-nodes-netsapiens in your n8n instance config directory and restart n8n).

Resources

Changelog

For a version history of changes and updates, see the CHANGELOG.md file.

TODO

See TODO.md.

Attribution

NetSapiens is A Crexendo Company and they own the trademarks and intellectual property rights to the NetSapiens brand. This node is not affiliated with NetSapiens or Crexendo in any way and is provided as a service to the n8n community.

License

MIT