Overview
The/status endpoint provides detailed information about the running daemon, including process details, configuration, and operational metrics. This endpoint requires authentication.
Authentication
This endpoint requires a valid authentication token if configured:authToken in your LongMem configuration file to enable authentication.
Request
Response
Status of the daemon. Always returns
"ok" if running.Process ID of the running daemon.
Port number the daemon is listening on.
Daemon uptime in seconds since the process started.
Number of pending compression jobs in the worker queue.
Whether the compression circuit breaker is open (paused due to errors).
Time in milliseconds since the last activity was recorded.
Whether the daemon is managed by a service manager (systemd or launchd).
LongMem version string.
Example
Status Codes
- 200 OK: Successfully retrieved status information
- 401 Unauthorized: Missing or invalid authentication token
- 500 Internal Server Error: Unexpected server error
Use Cases
- Monitor daemon health and resource usage
- Check if daemon is service-managed or manually started
- Verify daemon version for compatibility
- Debug compression queue issues
- Monitor idle time for auto-shutdown decisions