Skip to content

The Cron service provides health monitoring and machine-readable API documentation. Use these endpoints to verify the service is running, retrieve its OpenAPI specification in JSON or YAML format, and diagnose configuration issues.


Returns the operational status of the Cron service along with runtime metadata such as process ID, startup time, IP address, and memory usage.

This endpoint takes no parameters.

Service is healthy.

{
"status": "ok",
"service": "cron",
"started": "2026-01-15T08:30:00.000Z",
"pid": 4281,
"ip": "10.0.0.42",
"built": "2026-01-14T12:00:00.000Z",
"fds": 16,
"memory": {
"rss": 67108864,
"heap": 33554432
},
"user_agent": "Hoody-HealthCheck/1.0"
}

Response fields:

FieldTypeDescription
statusstringCurrent service health status
servicestringService name
startedstringISO 8601 timestamp of when the service started
pidintegerProcess ID of the running service
ipstringIP address the service is bound to
builtstring | nullISO 8601 build timestamp, or null if unknown
fdsinteger | nullNumber of open file descriptors, or null if unavailable
memoryobject | nullMemory usage details (RSS and optional heap), or null
memory.rssintegerResident set size in bytes
memory.heapinteger | nullHeap usage in bytes, or null
user_agentstring | nullUser agent string from the request, or null

SDK usage:

const result = await client.cron.health.check();

Returns the full OpenAPI 3.x specification for the Cron service as a JSON document. Useful for generating client libraries, importing into tools like Postman or Insomnia, or building documentation.

This endpoint takes no parameters.

OpenAPI JSON document.

{
"openapi": "3.0.3",
"info": {
"title": "Hoody Cron API",
"version": "1.0.0",
"description": "Scheduled task management for the Hoody platform"
},
"servers": [
{
"url": "https://api.hoody.com/api/cron"
}
],
"paths": {
"/health": {
"get": {
"summary": "Service health check",
"responses": {
"200": {
"description": "Service is healthy"
}
}
}
},
"/openapi.json": {
"get": {
"summary": "OpenAPI JSON",
"responses": {
"200": {
"description": "OpenAPI JSON"
}
}
}
},
"/openapi.yaml": {
"get": {
"summary": "OpenAPI YAML",
"responses": {
"200": {
"description": "OpenAPI YAML"
},
"500": {
"description": "Render error"
}
}
}
}
}
}

SDK usage:

const spec = await client.cron.system.getOpenApiJson();

Returns the same OpenAPI specification as /openapi.json, serialized as YAML. Prefer this endpoint when piping the spec into tools that accept YAML natively.

This endpoint takes no parameters.

OpenAPI YAML document.

openapi: 3.0.3
info:
title: Hoody Cron API
version: 1.0.0
description: Scheduled task management for the Hoody platform
servers:
- url: https://api.hoody.com/api/cron
paths:
/health:
get:
summary: Service health check
responses:
"200":
description: Service is healthy
/openapi.json:
get:
summary: OpenAPI JSON
responses:
"200":
description: OpenAPI JSON
/openapi.yaml:
get:
summary: OpenAPI YAML
responses:
"200":
description: OpenAPI YAML
"500":
description: Render error

SDK usage:

const spec = await client.cron.system.getOpenApiYaml();