exchange_code
Exchange a NinjaOne authorization code for a refresh token to enable persistent API access without re-authentication.
Instructions
Exchange a NinjaOne authorization code for a refresh token. Paste the code from the redirect URL after using get_auth_url. Save the returned refresh_token as NINJA_REFRESH_TOKEN in your MCP client config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The authorization code from the redirect URL query parameter 'code' |