Already a NinjaOne customer? Log in to view more guides and the latest updates.

Public API 2.0 Authorization

Topic

This article explains how to configure your authorization flows for application programming interface (API) requests through the NinjaOne Public API 2.0.

Environment

  • NinjaOne Documentation
  • NinjaOne Public API 2.0

Description

The NinjaOne Public API 2.0 requires either an authentication token or an API session key to send the API request. Review the Authorization section of the API documentation to learn more about these requirements.

public api 2.0_authorization.png
Figure 1: Review the NinjaOne Public API 2.0 authorization documentation
  1. Click through the Create Applications menu to learn about your options when registering your app within the NinjaOne web application. These pages provide comprehensive instructions for configuring your authorization workflow.
public api 2.0_create applications menu.png
Figure 2: Review the registration documentation
  1. After you have registered your application and configured the authorization flow, return to the NinjaOne Public API Core Resources page and select a request.
  2. In the Auth header of the API request block, select your authorization type and paste the required data into the sessionKey or Token field as described in the Authorization documentation.
  3. Enter your parameters, if any, and then click Send API Request.
Figure 3: Add the sessionKey and send the API request (click to enlarge)

The response to the request will appear.

api request_response.png
Figure 4: Example of an API response

Additional Resources

Refer to NinjaOne Documentation: Public API to learn how to access and interact with the NinjaOne Public API.

FAQ

Next Steps