NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

System → List policies

AI-generated

Summary

Retrieve a list of policies from the NinjaOne system resource, with optional pagination, filtering, and customization of the API request.

Inputs

  • Return All — Select whether to return all policies or only a single page of results. When false, returns only one page without pagination parameters.
  • Options — Optional settings including custom request body JSON to override or augment defaults, custom HTTP headers, query-string filters for refined searching, batching settings to control request rate and grouping, debug flag to include request details in output, pagination configuration to manage page size, mode, and limits, and request timeout in milliseconds.

Output shape

a list of policy records as returned by the NinjaOne API, optionally including debugging information if enabled

Pagination settings control how multiple pages of policies are fetched. Custom body and headers allow low-level request customization. The output includes the raw API response data, typically an array of policies, accessible at the response path specified in pagination options if set.

Examples

Example 1: Fetch all policies with default pagination

Return All = true, default pagination settings

Example 2: Fetch a single page of policies filtered by a query parameter

Return All = false, Query Filters specifying filter name and value

Example 3: Send a custom header for authorization or context

Options > Custom Headers includes header name and value

Links

Discussion