JSPM

  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q79394F
  • License MIT

Unofficial NinjaOne integration for n8n

Package Exports

  • @ev1lc0rp/n8n-nodes-ninjaone
  • @ev1lc0rp/n8n-nodes-ninjaone/dist/nodes/NinjaOne/NinjaOne.node.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ev1lc0rp/n8n-nodes-ninjaone) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@ev1lc0rp/n8n-nodes-ninjaone

Unofficial NinjaOne integration for n8n providing comprehensive RMM platform functionality.

npm version npm downloads GitHub stars GitHub forks GitHub issues GitHub pull requests GitHub license

Installation

Follow the community node installation guide and install the package:

npm install @ev1lc0rp/n8n-nodes-ninjaone

Nodes

NinjaOne

Interact with the NinjaOne API.

  • Device – Retrieve devices, jobs, alerts and more
  • Webhook – Create, update or delete a webhook
  • Related Item – Manage relations between entities
  • Ticket – Create, update and comment on tickets
  • System – Query system entities like policies or users
  • Location – Read and update location custom fields
  • Organization – Retrieve organizations and related resources
  • Backup – Create and list backup jobs
  • Knowledge Base – Manage knowledge base articles and folders
  • Group – Get device IDs for a group
  • Query – Run device queries such as antivirus status or health
  • Organization Document – Manage organization documents
  • Document Template – Manage document templates
  • Checklist Template – Manage checklist templates
  • Organization Checklist – Manage client checklists
  • Asset Tag – Create and manage asset tags
  • Vulnerability – Upload scan data and list groups
  • Custom Field – Obtain signed URLs for custom field content
  • Management – Advanced management operations (e.g. maintenance)

NinjaOne Legacy

Legacy HMAC based authentication for older NinjaOne API versions.

  • Customer – List customers or retrieve a customer by ID

Creating a Ticket

Use the Create operation on the Ticket resource. A minimal payload matching the NewTicket schema is:

{
  "clientId": 1,
  "ticketFormId": 1,
  "subject": "CPU with problems",
  "description": {
    "public": true,
    "body": "new ticket description"
  }
}

Additional optional fields such as severity, priority and tags can be provided.

Authorization Workflow

The NinjaOne Public API uses OAuth 2.0. Redirect the user to https://app.ninjarmm.com/ws/oauth/authorize with the required parameters. Exchange the authorization code for an access token by sending a POST request to https://app.ninjarmm.com/ws/oauth/token. Use the received access_token in the Authorization: Bearer header for all subsequent requests.

Credentials

Create credentials of type NinjaOne OAuth2 API or NinjaOne Legacy API. n8n handles token generation and signing for you. The NinjaOne OAuth2 credentials now include a Base URL field allowing you to specify the API endpoint for your region. The default value is https://api.ninjaone.com.

Compatibility

  • Minimum n8n version: 1.38.0
  • Tested on Node.js 20

Usage

After installation and credential setup the nodes appear under Community Nodes in the editor. Add a node, select the credentials and choose an operation.

Resources

Development Notes

The Webhook resource is fully functional. Implementation of some related item and location custom field endpoints is pending. The new-node-feature-docs/ directory contains reference API method lists for additional features.

Troubleshooting

400 Bad Request

: The NinjaOne API may reject requests when required parameters are missing or malformed. Confirm that all mandatory fields are set for the selected operation. When using OAuth2 credentials, make sure the Base URL points to the correct region endpoint and does not contain a trailing slash.

write EPROTO / TLS handshake errors

: Errors such as write EPROTO or tlsv1 unrecognized name typically indicate a problem during the TLS handshake. Verify that the Base URL uses https and refers to your actual NinjaOne API domain (for example https://api.ninjaone.com). Also check that your environment trusts the server certificate and that no proxy is interfering with the connection.