NinjaOne
Enrich, hunt and patch endpoints from NinjaOne
Resolve devices from an IP, hostname or user, find where an advisory's product is unpatched, and apply OS or software patches with approval.
ninjaone_1.0.0.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
NinjaOne is a unified endpoint management (RMM) platform: it inventories every managed endpoint, keeps software and patch state current, and runs monitoring that raises alerts. This connector brings that estate data into SOAR so endpoint questions become playbook questions.
What it covers
56 operations across the NinjaOne Public API v2, grouped as:
- Investigate (40) — resolve devices by hostname, IP, owner or organization; read device detail, approvals, custom fields, network interfaces, disks, processors, last logged-on user, installed software and OS/software patch state; list alerts, activities, jobs and automation scripts; open the device's console deep link.
- Remediate (16) — approve and apply OS and software patches, reboot with maintenance windows and monitoring suppression, run and track automation/script jobs, manage device approvals and maintenance mode.
Sample playbooks (5)
The connector ships a playbook collection, Sample - NinjaOne - 1.0.0:
| Playbook | Steps | What it does |
|---|---|---|
| Enrich Asset | 8 | Resolve a hostname, IP or logged-on user to a device; pull identity, owner and console deep link |
| Find Exposed Endpoints | 7 | Given a product name from an advisory, find where it exists and where it is unpatched |
| Patch Endpoint with Approval | 13 | Show pending patches, ask for approval, then scan and apply |
| Reboot Endpoint with Approval | 10 | Approve, suppress monitoring during the reboot, reboot, confirm the endpoint returns |
| Restart Windows Service | 6 | Restart a named Windows service and verify it is running again |
Good to know
- Auth: OAuth client credentials (access key ID + secret). Every operation in the collection and every documented example was executed against a live tenant with an enrolled Windows endpoint; the full pass/fail matrix with the reason for each failure is in the repository's
COVERAGE.md. run_scriptneeds a user-context token: machine-to-machine (client-credentials) tokens receive 403 "Access key does not have user context" for script execution. The sample collection deliberately builds nothing on it.- "Patch Endpoint with Approval" requires patching enabled in the device's NinjaOne policy. That is a one-time tenant setting, not a connector limit — the playbook is the reason to go turn it on.
- Approvals are real gates: the remediation playbooks stop at a manual input step and wait for a human before anything changes on the endpoint.
Configuration · 6 fields
- Region
regionselect requiredNinjaOne instance your tenant lives in. NinjaOne is region-isolated: an API client created in one region does not exist in any other, and the token endpoint reports that as "Client app not exist" rather than an authentication error. Match this to the hostname you log in to.
Default
North America (app.ninjarmm.com)Options Canada (ca.ninjarmm.com)Europe (eu.ninjarmm.com)North America (app.ninjarmm.com)North America 2 (us2.ninjarmm.com)Oceania (oc.ninjarmm.com) - Client ID
client_idtext requiredClient ID of the API application, from Administration > Apps > API > Client App IDs. The application platform must be "API Services (machine-to-machine)".
- Client Secret
client_secretpassword requiredClient secret issued with the Client ID. Shown once at creation.
- Scope
scopetextSpace-separated OAuth scopes to request. "monitoring" covers reads, "management" covers writes, and "control" is required for script execution and reboots. The app must already be granted each scope requested here.
Default
monitoring management control - Custom Server URL
server_urltextOverrides the Region above. Only needed for a non-standard endpoint; leave blank otherwise.
- Verify SSL
verify_sslcheckboxVerify the TLS certificate of the NinjaOne endpoint.
Default
true
Operations · 56
Get Devices 2 params
get_devicesget_devicesRetrieves devices from NinjaOne, optionally narrowed by a device filter. Pages automatically up to the record limit.
- Device Filter
device_filtertextNinjaOne device filter (the "df" syntax), e.g. "org = 1", "class = WINDOWS_WORKSTATION", or "online = true". Leave blank for the whole estate.
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200
ReturnscountdevicesGet Devices (Detailed) 2 params
get_devices_detailedget_devices_detailedRetrieves devices with their full nested detail (system, OS, network, and policy information) in one call, avoiding a Get Device per row.
- Device Filter
device_filtertextNinjaOne device filter (the "df" syntax), e.g. "org = 1", "class = WINDOWS_WORKSTATION", or "online = true". Leave blank for the whole estate.
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200
ReturnscountdevicesSearch Devices 2 params
search_devicessearch_devicesFinds devices by free-text query across name, logged-on user, and IP address. This is how you turn a hostname from an alert into the numeric device ID every other device operation needs.
- Search Query
querytext requiredFree text to match against device name, logged-on user, or IP address.
- Limit
limitintegerMaximum number of matches to return.
Default
50
ReturnsdevicesGet Device Details 1 param
get_deviceget_deviceRetrieves the full record for a single device.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
ReturnsidparentDeviceIdorganizationIdlocationIdnodeClassnodeRoleIdpolicyIdapprovalStatusofflinedisplayNamesystemNamednsNamelastContactlastUpdatecreatedsystemosipAddressesmacAddressesUpdate Device 8 params
update_deviceupdate_deviceChanges a device's display name, assigned policy, role, organization, location, or custom attributes.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Display Name
display_nametextNew user-assigned display name.
- Policy ID
policy_idintegerPolicy to assign. Overrides the organization policy mapping; clear it to revert to the organization default.
- Node Role ID
node_role_idintegerDevice role to assign.
- Organization ID
organization_idintegerMove the device to this organization.
- Location ID
location_idintegerMove the device to this location.
- Custom Attributes
user_datajsonCustom attributes to set, as a JSON object.
- Additional Fields
additional_fieldsjsonAny other body fields, as a JSON object. Merged into the request, so this reaches fields the form above does not expose.
ReturnsstatusGet Device Custom Fields 2 params
get_device_custom_fieldsget_device_custom_fieldsRetrieves the custom field values set on a device.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- With Inheritance
with_inheritancecheckboxResolve values through the definition scope hierarchy rather than returning only values set directly on the device.
Default
false
Update Device Custom Fields 2 params
update_device_custom_fieldsupdate_device_custom_fieldsSets custom field values on a device. Useful for writing a FortiSOAR record ID or remediation state back onto the endpoint.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Field Values
fieldsjson requiredJSON object of field name to value, e.g. {"soarTicket": "IR-1043"}.
ReturnsstatusGet Device Dashboard URL 1 param
get_device_dashboard_urlget_device_dashboard_urlReturns a deep link to the device in the NinjaOne console, for attaching to an alert or a case note.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
ReturnsurlGet Device Software Inventory 1 param
get_device_softwareget_device_softwareLists the software installed on a device. This is the "does this vulnerable product exist here?" lookup.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
Get Device Disks 1 param
get_device_disksget_device_disksLists the physical disk drives on a device, with SMART health where available.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
Get Device Volumes 2 params
get_device_volumesget_device_volumesLists storage volumes on a device, optionally including BitLocker encryption status.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Include BitLocker Status
include_bitlockercheckboxInclude BitLocker encryption status for each volume.
Default
false
Get Device Processors 1 param
get_device_processorsget_device_processorsLists the processors installed in a device.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
Get Device Network Interfaces 1 param
get_device_network_interfacesget_device_network_interfacesLists the network interfaces on a device, with addresses and link state.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
Get Last Logged-On User 1 param
get_device_last_logged_on_userget_device_last_logged_on_userReturns the most recent interactive user on a device -- the person to contact about an alert or a reboot.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
Get Windows Services 3 params
get_device_windows_servicesget_device_windows_servicesLists Windows services on a device, optionally filtered by name or state.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Service Name
nametextFilter to services matching this name.
- State
stateselectFilter to services in this state.
Options UNKNOWNSTOPPEDSTART_PENDINGRUNNINGSTOP_PENDINGPAUSE_PENDINGPAUSEDCONTINUE_PENDING
Get Software Inventory Report 5 params
get_software_inventory_reportget_software_inventory_reportEstate-wide software inventory across every device matching the filter, rather than one device at a time. Pages automatically.
- Device Filter
device_filtertextNinjaOne device filter (the "df" syntax), e.g. "org = 1", "class = WINDOWS_WORKSTATION", or "online = true". Leave blank for the whole estate.
- Product Name Contains
name_containstextCase-insensitive substring match on the product name, applied after the results are fetched. Use it to turn an advisory's product name into "which of our endpoints run this?".
- Installed After
installed_afterdatetimeOnly include patches installed after this time.
- Installed Before
installed_beforedatetimeOnly include patches installed before this time.
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200
ReturnscountcursorresultsGet Device Health Report 3 params
get_device_health_reportget_device_health_reportEstate-wide device health report, for triaging which endpoints are unhealthy before acting on them.
- Device Filter
device_filtertextNinjaOne device filter (the "df" syntax), e.g. "org = 1", "class = WINDOWS_WORKSTATION", or "online = true". Leave blank for the whole estate.
- Health Status
healthtextFilter to a health status, e.g. "HEALTHY" or "UNHEALTHY".
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200
ReturnscountcursorresultsGet Device Pending OS Patches 4 params
get_device_pending_os_patchesget_device_pending_os_patchesLists pending, failed, and rejected operating system patches for one device.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Status
statusmultiselectFilter to these patch statuses.
Options MANUALAPPROVEDFAILEDREJECTED - Severity
severitymultiselectFilter to these severities.
Options UNKNOWNLOWMODERATEIMPORTANTCRITICALOPTIONAL - Type
typemultiselectFilter to these patch types.
Options UNKNOWNPATCHINSTALLER
Get Device Installed OS Patches 4 params
get_device_installed_os_patchesget_device_installed_os_patchesOS patch installation history for one device -- what landed, what failed, and when. Use it to prove a remediation actually took.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Status
statusmultiselectFilter to these statuses.
Options INSTALLEDFAILED - Installed After
installed_afterdatetimeOnly include patches installed after this time.
- Installed Before
installed_beforedatetimeOnly include patches installed before this time.
Get Device Pending Software Patches 5 params
get_device_pending_software_patchesget_device_pending_software_patchesLists pending, failed, and rejected third-party software patches for one device.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Status
statusmultiselectFilter to these patch statuses.
Options MANUALAPPROVEDFAILEDREJECTED - Impact
impactmultiselectFilter to these impact levels.
Options UNKNOWNOPTIONALRECOMMENDEDCRITICAL - Type
typemultiselectFilter to these patch types.
Options UNKNOWNPATCHINSTALLER - Product Identifier
product_identifiertextRestrict to a single product, as listed by Get Software Products.
Get Device Installed Software Patches 7 params
get_device_installed_software_patchesget_device_installed_software_patchesThird-party software patch history for one device.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Status
statusmultiselectFilter to these statuses.
Options INSTALLEDFAILED - Impact
impactmultiselectFilter to these impact levels.
Options UNKNOWNOPTIONALRECOMMENDEDCRITICAL - Type
typemultiselectFilter to these patch types.
Options UNKNOWNPATCHINSTALLER - Product Identifier
product_identifiertextRestrict to a single product.
- Installed After
installed_afterdatetimeOnly include patches installed after this time.
- Installed Before
installed_beforedatetimeOnly include patches installed before this time.
Get Pending OS Patches Report 6 params
get_pending_os_patches_reportget_pending_os_patches_reportEstate-wide pending, failed, and rejected OS patches across every device matching the filter. Pages automatically.
- Device Filter
device_filtertextNinjaOne device filter (the "df" syntax), e.g. "org = 1", "class = WINDOWS_WORKSTATION", or "online = true". Leave blank for the whole estate.
- Status
statusmultiselectFilter to these patch statuses.
Options MANUALAPPROVEDFAILEDREJECTED - Severity
severitymultiselectFilter to these severities.
Options UNKNOWNLOWMODERATEIMPORTANTCRITICALOPTIONAL - Type
typemultiselectFilter to these patch types.
Options UNKNOWNPATCHINSTALLER - Timestamp Filter
timestamp_filtertextNinjaOne monitoring timestamp filter ("ts" syntax).
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200
ReturnscountcursorresultsGet Pending Software Patches Report 8 params
get_pending_software_patches_reportget_pending_software_patches_reportEstate-wide pending, failed, and rejected third-party software patches. This is the "who else is exposed?" query for a product-specific advisory.
- Device Filter
device_filtertextNinjaOne device filter (the "df" syntax), e.g. "org = 1", "class = WINDOWS_WORKSTATION", or "online = true". Leave blank for the whole estate.
- Status
statusmultiselectFilter to these patch statuses.
Options MANUALAPPROVEDFAILEDREJECTED - Impact
impactmultiselectFilter to these impact levels.
Options UNKNOWNOPTIONALRECOMMENDEDCRITICAL - Type
typemultiselectFilter to these patch types.
Options UNKNOWNPATCHINSTALLER - Product Identifier
product_identifiertextRestrict to a single product, as listed by Get Software Products.
- Timestamp Filter
timestamp_filtertextNinjaOne monitoring timestamp filter ("ts" syntax).
- Product Name Contains
name_containstextCase-insensitive substring match on the product name, applied after the results are fetched. Use it to turn an advisory's product name into "which of our endpoints run this?".
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200
ReturnscountcursorresultsScan OS Patches 1 param
scan_os_patchesscan_os_patchesTriggers an operating system patch scan on a device so its pending-patch list is refreshed before you read it.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
Returnsstatusdevice_idactionmessageApply OS Patches 1 param
apply_os_patchesapply_os_patchesTriggers installation of approved operating system patches on a device. NinjaOne returns no job identifier, so poll Get Device Jobs or re-read the pending list to confirm completion.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
Returnsstatusdevice_idactionmessageScan Software Patches 1 param
scan_software_patchesscan_software_patchesTriggers a third-party software patch scan on a device.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
Returnsstatusdevice_idactionmessageApply Software Patches 1 param
apply_software_patchesapply_software_patchesTriggers installation of approved third-party software patches on a device. This is the actual remediation step for a vulnerable application.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
Returnsstatusdevice_idactionmessageRun Script 5 params
run_scriptrun_scriptRuns a saved automation script, or a built-in action, on a device. Supply exactly one of Script ID or Action UID -- NinjaOne rejects both together.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Script ID
script_idintegerNumeric ID of a script from the automation library, as listed by Get Automation Scripts.
- Action UID
action_uidtextString UID of a built-in action. Use instead of Script ID, never alongside it.
- Parameters
parameterstextCommand-line parameters passed to the script or action.
- Run As
run_astextCredential role to run under, e.g. "system" or "loggedonuser".
ReturnsjobUidGet Automation Scripts 1 param
get_automation_scriptsget_automation_scriptsLists the automation scripts available in the tenant, with the IDs that Run Script takes.
- Language
languagetextLanguage tag for localized names.
Get Device Scripting Options 2 params
get_scripting_optionsget_scripting_optionsLists the scripts, built-in actions, and credential roles that are valid for one specific device.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Language
languagetextLanguage tag for localized names.
Reboot Device 3 params
reboot_devicereboot_deviceReboots a device, either gracefully or forcibly.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Reboot Mode
modeselect requiredNORMAL asks the operating system to reboot cleanly. FORCED does not wait for applications to close and can lose unsaved work.
Default
NORMALOptions NORMALFORCED - Reason
reasontextReason recorded against the reboot in the device activity log.
Returnsstatusdevice_idmodeControl Windows Service 3 params
control_windows_servicecontrol_windows_serviceStarts, stops, pauses, or restarts a Windows service on a device.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Service ID
service_idtext requiredService identifier, as returned by Get Windows Services.
- Action
actionselect requiredAction to take on the service.
Options STARTPAUSESTOPRESTART
Returnsstatusdevice_idservice_idactionSchedule Maintenance 5 params
schedule_maintenanceschedule_maintenanceSuppresses monitoring on a device for a window. End Time is mandatory -- NinjaOne has no open-ended maintenance mode.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- End Time
end_timedatetime requiredWhen the maintenance window ends. Required.
- Start Time
start_timedatetimeWhen the maintenance window begins. Defaults to now.
- Disabled Features
disabled_featurestextFeatures to suspend during the window, comma-separated, e.g. "ALERTS,PATCHING,AVSCANS,TASKS".
- Reason
reasontextReason recorded for the window.
Returnsstatusdevice_idendCancel Maintenance 1 param
cancel_maintenancecancel_maintenanceEnds an active maintenance window on a device and resumes monitoring.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
Returnsstatusdevice_idGet Active Jobs 3 params
get_jobsget_jobsLists jobs currently running across the estate -- the way to see whether a patch apply or script run is still in flight.
- Job Type
job_typetextFilter to these job types, comma-separated.
- Device Filter
device_filtertextNinjaOne device filter (the "df" syntax), e.g. "org = 1", "class = WINDOWS_WORKSTATION", or "online = true". Leave blank for the whole estate.
- Time Zone
timezonetextIANA time zone used to render timestamps, e.g. "America/Los_Angeles". Defaults to the tenant setting.
Get Device Jobs 2 params
get_device_jobsget_device_jobsLists jobs currently running on one device. Poll this after Apply Patches or Run Script, which return no job identifier of their own.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Time Zone
timezonetextIANA time zone used to render timestamps, e.g. "America/Los_Angeles". Defaults to the tenant setting.
Get Alerts 3 params
get_alertsget_alertsLists active alerts (triggered conditions) across the estate.
- Device Filter
device_filtertextNinjaOne device filter (the "df" syntax), e.g. "org = 1", "class = WINDOWS_WORKSTATION", or "online = true". Leave blank for the whole estate.
- Source Type
source_typetextFilter to alerts from this source type, e.g. "CONDITION".
- Time Zone
timezonetextIANA time zone used to render timestamps, e.g. "America/Los_Angeles". Defaults to the tenant setting.
Get Device Alerts 2 params
get_device_alertsget_device_alertsLists active alerts for one device.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Time Zone
timezonetextIANA time zone used to render timestamps, e.g. "America/Los_Angeles". Defaults to the tenant setting.
Reset Alert 2 params
reset_alertreset_alertClears a triggered condition. Supplying Activity Data records that data on the resulting activity entry, which is how you write a FortiSOAR case reference back into NinjaOne.
- Alert UID
alert_uidtext requiredUID of the alert to reset, as returned by Get Alerts.
- Activity Data
activity_datajsonOptional JSON object recorded against the reset activity.
Returnsstatusalert_uidGet Activities 12 params
get_activitiesget_activitiesRetrieves the activity log across the estate, filtered by class, type, status, time window, or device.
- Activity Class
activity_classselectRestrict to system, device, or user activities.
Default
ALLOptions ALLSYSTEMDEVICEUSER - Device Filter
device_filtertextNinjaOne device filter (the "df" syntax), e.g. "org = 1", "class = WINDOWS_WORKSTATION", or "online = true". Leave blank for the whole estate.
- Activity Type
typetextRestrict to this activity type.
- Status
statustextRestrict to these statuses, comma-separated.
- User
usertextRestrict to these users, comma-separated.
- Alert Series UID
series_uidtextRestrict to activities belonging to one alert series.
- Start Time
start_timedatetimeOnly activities recorded at or after this time.
- End Time
end_timedatetimeOnly activities recorded at or before this time.
- Newer Than Activity ID
newer_thanintegerOnly activities with an ID greater than this. The reliable cursor for polling, since it cannot skip entries that share a timestamp.
- Older Than Activity ID
older_thanintegerOnly activities with an ID lower than this.
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200 - Time Zone
timezonetextIANA time zone used to render timestamps, e.g. "America/Los_Angeles". Defaults to the tenant setting.
ReturnslastActivityIdactivitiesGet Device Activities 10 params
get_device_activitiesget_device_activitiesRetrieves the activity log for one device -- the audit trail of what NinjaOne did to it and when.
- Device ID
device_idinteger requiredNumeric NinjaOne device identifier. Use Search Devices to resolve a hostname, IP, or logged-on user to this ID.
- Activity Type
typetextRestrict to this activity type.
- Status
statustextRestrict to these statuses, comma-separated.
- Alert Series UID
series_uidtextRestrict to activities belonging to one alert series.
- Start Time
start_timedatetimeOnly activities recorded at or after this time.
- End Time
end_timedatetimeOnly activities recorded at or before this time.
- Newer Than Activity ID
newer_thanintegerOnly activities with an ID greater than this.
- Older Than Activity ID
older_thanintegerOnly activities with an ID lower than this.
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200 - Time Zone
timezonetextIANA time zone used to render timestamps, e.g. "America/Los_Angeles". Defaults to the tenant setting.
Get Organizations 2 params
get_organizationsget_organizationsLists the organizations (tenants) in NinjaOne.
- Organization Filter
organization_filtertextNinjaOne organization filter ("of" syntax).
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200
ReturnscountorganizationsGet Organization 1 param
get_organizationget_organizationRetrieves a single organization by ID.
- Organization ID
organization_idinteger requiredNumeric organization identifier.
ReturnsidnamedescriptionGet Organization Devices 2 params
get_organization_devicesget_organization_devicesLists every device belonging to one organization. Pages automatically.
- Organization ID
organization_idinteger requiredNumeric organization identifier.
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200
Returnscountorganization_iddevicesGet Organization Locations 1 param
get_organization_locationsget_organization_locationsLists the locations configured for an organization.
- Organization ID
organization_idinteger requiredNumeric organization identifier.
Get Groups
get_groupsget_groupsLists groups (saved device searches). A group is the usual way to express "all servers" or "all laptops missing patches" once and reuse it.
No parameters.
Get Group Devices 1 param
get_group_devicesget_group_devicesReturns the device IDs that currently match a group's saved search.
- Group ID
group_idinteger requiredNumeric group identifier.
Get Policies
get_policiesget_policiesLists the policies defined in the tenant, with the IDs that Update Device takes.
No parameters.
Get Software Products
get_software_productsget_software_productsLists the third-party products NinjaOne can patch, with the product identifiers the software patch operations filter on.
No parameters.
Generate Agent Installer 4 params
generate_installergenerate_installerMints a pre-tokenized agent installer download link for an organization and location. This is how a device gets enrolled from a playbook: the URL already carries the organization and location, so nothing has to be typed on the endpoint.
- Organization ID
organization_idinteger requiredOrganization the enrolled device will belong to.
- Location ID
location_idinteger requiredLocation within that organization, as listed by Get Organization Locations.
- Installer Type
installer_typeselect requiredAgent package to build. WINDOWS_MSI for Windows guests; LINUX_RPM for a Rocky/RHEL host, LINUX_DEB for Debian/Ubuntu.
Default
WINDOWS_MSIOptions WINDOWS_MSIWINDOWS_ARM64_MSIMAC_DMGMAC_PKGLINUX_DEBLINUX_RPMLINUX_ARM64_DEBLINUX_ARMV7A_DEBLINUX_ARM64_RPMLINUX_ARMV7A_RPM - Usage Limit
usage_limitintegerHow many times the link may be downloaded. The URL is a bearer credential for joining your tenant, so keep this at 1 for a single machine.
Default
1
ReturnsurlinstallerTypeorganizationIdlocationIdCreate Ticket 16 params
create_ticketcreate_ticketCreates a NinjaOne ticket, optionally linked to a device. Requires the Ninja Ticketing add-on to be enabled on the tenant.
- Organization ID
organization_idinteger requiredOrganization (client) the ticket belongs to.
- Ticket Form ID
ticket_form_idinteger requiredTicket form to create against, as listed by the ticketing configuration.
- Subject
subjecttext requiredTicket subject line.
- Status
statustext requiredTicket status, e.g. "NEW". Must be a status defined on the tenant.
- Description
descriptiontextTicket body. Sent as the description document.
- Public Description
publiccheckboxMake the description visible to the end user rather than internal-only.
Default
false - Device ID
device_idintegerDevice to associate the ticket with.
- Location ID
location_idintegerLocation for the ticket.
- Type
typeselectTicket type.
Options PROBLEMQUESTIONINCIDENTTASKCHANGE_REQUESTSERVICE_REQUESTPROJECTAPPOINTMENTMISCELLANEOUS - Severity
severityselectTicket severity.
Options NONEMINORMODERATEMAJORCRITICAL - Priority
priorityselectTicket priority.
Options NONELOWMEDIUMHIGH - Assigned Technician ID
assigned_user_idintegerTechnician to assign the ticket to.
- Requester UID
requester_uidtextUID of the requesting contact or end user.
- Parent Ticket ID
parent_ticket_idintegerParent ticket, to create this as a child.
- Tags
tagstextTags to apply, comma-separated.
- Additional Fields
additional_fieldsjsonAny other body fields, as a JSON object.
ReturnsidversionclientIdticketFormIdnodeIdsubjectstatustypeseveritypriorityassignedAppUserIdrequesterUidtagscreateTimeGet Ticket 1 param
get_ticketget_ticketRetrieves a ticket by ID, including the version number that Update Ticket needs.
- Ticket ID
ticket_idinteger requiredNumeric ticket identifier.
ReturnsidversionclientIdticketFormIdnodeIdsubjectstatustypeseveritypriorityassignedAppUserIdrequesterUidtagscreateTimeUpdate Ticket 11 params
update_ticketupdate_ticketChanges fields on an existing ticket. NinjaOne's update endpoint is a full replace, so this operation reads the ticket first and layers your changes on top -- supply only the fields you want changed.
- Ticket ID
ticket_idinteger requiredNumeric ticket identifier.
- Status
statustextNew ticket status.
- Subject
subjecttextNew subject line.
- Type
typeselectNew ticket type.
Options PROBLEMQUESTIONINCIDENTTASKCHANGE_REQUESTSERVICE_REQUESTPROJECTAPPOINTMENTMISCELLANEOUS - Severity
severityselectNew severity.
Options NONEMINORMODERATEMAJORCRITICAL - Priority
priorityselectNew priority.
Options NONELOWMEDIUMHIGH - Assigned Technician ID
assigned_user_idintegerReassign to this technician.
- Location ID
location_idintegerNew location.
- Device ID
device_idintegerAssociate with this device.
- Tags
tagstextReplacement tags, comma-separated. Replaces the existing set.
- Additional Fields
additional_fieldsjsonAny other body fields, as a JSON object. Applied last, so it overrides everything above.
ReturnsidversionclientIdticketFormIdnodeIdsubjectstatustypeseveritypriorityassignedAppUserIdrequesterUidtagscreateTimeAdd Ticket Comment 4 params
add_ticket_commentadd_ticket_commentAppends a comment to a ticket, either internal or visible to the end user.
- Ticket ID
ticket_idinteger requiredNumeric ticket identifier.
- Comment Body
bodytext requiredComment text.
- Public Comment
publiccheckboxMake the comment visible to the end user rather than internal-only.
Default
false - HTML Body
html_bodytextOptional HTML rendering of the comment.
ReturnsidticketIdGet Tickets by Board 7 params
get_tickets_by_boardget_tickets_by_boardRuns a ticketing board and returns the tickets it matches -- the way to list tickets, since NinjaOne has no flat ticket search.
- Board ID
board_idinteger requiredNumeric board identifier.
- Search Criteria
searchtextFree-text search within the board.
- Filters
filtersjsonBoard filters, as a JSON array.
- Sort By
sort_byjsonSort specification, as a JSON array.
- Include Columns
include_columnstextColumns to return, comma-separated.
- Last Cursor ID
last_cursor_idintegerCursor from a previous page, to continue paging.
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200
Fetch Patch Findings 7 params
fetch_patch_findingsfetch_patch_findingsPulls pending, failed, and rejected patches across the estate and normalizes OS and third-party patches into one flat finding shape, so a single playbook mapping covers both. This is the ingestion entry point.
- Patch Kind
patch_kindselectWhich patch sources to pull.
Default
BothOptions BothOperating SystemThird-Party Software - Device Filter
device_filtertextNinjaOne device filter (the "df" syntax), e.g. "org = 1", "class = WINDOWS_WORKSTATION", or "online = true". Leave blank for the whole estate.
- Status
statusmultiselectFilter to these patch statuses.
Options MANUALAPPROVEDFAILEDREJECTED - OS Severity
severitymultiselectSeverity filter, applied to operating system patches only.
Options UNKNOWNLOWMODERATEIMPORTANTCRITICALOPTIONAL - Software Impact
impactmultiselectImpact filter, applied to third-party software patches only.
Options UNKNOWNOPTIONALRECOMMENDEDCRITICAL - Product Identifier
product_identifiertextRestrict third-party results to a single product.
- Maximum Records
max_recordsintegerHard stop on the number of records returned. The connector pages until it reaches this many.
Default
200
Returnscountfindings