Authentication & System Health APIs Overview

N-central's Authentication and System Health APIs provide secure access management and system monitoring capabilities. These APIs enable secure token-based authentication and provide visibility into the health and version information of your N-central deployment.

API Methods

Authentication

Provides JWT (JSON Web Token) based authentication flow with access and refresh token management.

Key Methods

EndpointMethodDescription
/api/authGETReturns links to available authentication endpoints (authenticate, refresh, validate).
/api/auth/authenticatePOSTObtains initial access and refresh tokens using N-central User-API Token (JWT).
/api/auth/refreshPOSTObtains new access token using a valid refresh token.
/api/auth/validateGETVerifies if the current access token is valid.

Authentication Flow

  1. Generate N-central User-API Token from N-central UI
  2. Exchange User-API Token for access/refresh tokens via authenticate endpoint
  3. Use access token for API requests
  4. Use the refresh endpoint to obtain new tokens before the expiry
  5. Validate tokens as needed

System Health

Provides system status, version information, and health metrics for the N-central deployment.

Key Methods

EndpointMethodDescription
/apiGETReturns links to all available API endpoints.
/api/healthGETReturns server's current time and status for basic availability monitoring.
/api/server-infoGETReturns API service version and JVM version for version compatibility checking.
/api/server-info/extraGETReturns information about versions of different systems in N-central.
/api/server-info/extra/authenticatedPOSTReturns detailed version information about N-central systems. Requires valid access token.

Key Features

Secure Token Management

Complete JWT-based authentication flow with automatic token refresh capabilities and configurable token expiry.

Granular Access Control

Fine-grained API access control through token validation and custom token expiry settings.

Comprehensive Health Monitoring

Multiple endpoints for monitoring system health from basic availability checks to detailed component-level diagnostics.