Skip to main content

Server management

Comprehensive server management API for monitoring system health, checking readiness status, and performing graceful shutdown operations. Essential for deployment orchestration and container health checks.

Authentication

None

No authentication required for server management endpoints

Endpoints

Health Check

GET
/server/health

Retrieve detailed system health metrics including operating system information, hardware specifications, network configuration, and resource utilization. Provides comprehensive diagnostics for monitoring, troubleshooting, and capacity planning.

Response

200System health information retrieved successfully
platformstringREQUIRED
Operating system platform (e.g., 'Linux', 'Darwin', 'Windows')
Example:"Darwin"
platform_releasestringREQUIRED
Platform release version
Example:"24.6.0"
platform_versionstringREQUIRED
Detailed platform version string
Example:"Darwin Kernel Version 24.6.0"
architecturestringREQUIRED
System architecture (e.g., 'x86_64', 'arm64', 'aarch64')
Example:"arm64"
hostnamestringREQUIRED
System hostname
Example:"hostname.local"
ip_addressstringREQUIRED
Primary IP address of the server
Example:"192.168.1.100"
mac_addressstringREQUIRED
Primary MAC address of the server
Example:"aa:bb:cc:dd:ee:ff"
processorstringREQUIRED
Processor type
Example:"arm"
ramstringREQUIRED
Total system RAM
Example:"16 GB"

Error Codes

401
Unauthorized

Invalid or missing authentication token

403
Forbidden

Insufficient permissions for server management operations

500
Internal Server Error

Server encountered an error while processing the request

503
Service Unavailable

Server is temporarily unable to handle the request

Code examples - Health Check

BASH Request (cURL)
curl -X GET "http://localhost:8000/server/health"