Skip to content

Health check endpoints for the Files service. Use these endpoints to verify service availability, inspect build metadata, and monitor runtime resource usage such as file descriptors and resident memory.

Returns the service identity, build and start timestamps, current resource usage, and caller metadata. Use this endpoint for liveness probes and operational dashboards.

GET /api/v1/files/health

This endpoint takes no parameters.

Service is healthy.

{
"status": "ok",
"service": "hoody-files",
"built": "2025-01-15T08:30:00.000Z",
"started": "2025-01-20T14:22:10.000Z",
"memory": {
"heap": null,
"rss": 67108864
},
"fds": 42,
"pid": 12891,
"ip": "203.0.113.42",
"userAgent": "curl/8.4.0"
}
FieldTypeDescription
statusstringHealth status. Always "ok" when the service responds successfully.
servicestringService identifier (e.g., hoody-files).
builtstring | nullBuild timestamp (ISO 8601). null if the binary was built without a recorded timestamp.
startedstringService start timestamp (ISO 8601).
memoryobjectContainer for memory usage metrics.
memory.heapnullAlways null for native (non-JS) services.
memory.rssinteger | nullResident set size in bytes.
fdsinteger | nullOpen file descriptor count.
pidintegerProcess ID of the running service.
ipstringCaller IP address. Empty string when the request arrives over a Unix socket.
userAgentstringUser-Agent header of the incoming request.
const health = await client.files.health.check();
console.log(health.status); // "ok"
console.log(health.service); // "hoody-files"
console.log(health.memory.rss);