Skip to content

Operational endpoints for the agent service — standardized health check, Prometheus metrics, the live OpenAPI spec (JSON/YAML), and the API documentation UI. Use these endpoints for monitoring, observability, and API discovery.

API documentation UI. Renders the Swagger/Redoc UI for the agent’s OpenAPI document. Auth-gated; no conformance weight; may be dropped.

This endpoint takes no parameters.

"<!DOCTYPE html><html><head><title>Agent API</title>…</html>"
Terminal window
curl -X GET 'https://api.hoody.com/api/v1/agent/docs'

Kit-wide standardized health check. The only unauthenticated route; always returns HTTP 200 JSON. Returns a 9-field health payload.

This endpoint takes no parameters.

{
"status": "ok",
"uptime": 12345,
"version": "1.2.3",
"build": "abc1234",
"startedAt": "2024-01-15T10:00:00Z",
"hostname": "agent-pod-7f8d9",
"pid": 42,
"memory": {
"rss": 134217728,
"heapTotal": 67108864,
"heapUsed": 41943040
},
"deps": {
"daemon": "reachable",
"store": "reachable"
}
}
Terminal window
curl -X GET 'https://api.hoody.com/api/v1/agent/health'

Prometheus metrics. Returns Prometheus text exposition of the hoody_agent_* metric series. Namespaced per operator hard-req #1.

This endpoint takes no parameters.

# HELP hoody_agent_requests_total Total number of agent requests
# TYPE hoody_agent_requests_total counter
hoody_agent_requests_total{operation="health",status="200"} 1234
hoody_agent_requests_total{operation="metrics",status="200"} 567
# HELP hoody_agent_request_duration_seconds Request duration in seconds
# TYPE hoody_agent_request_duration_seconds histogram
hoody_agent_request_duration_seconds_bucket{le="0.005",operation="health"} 1100
hoody_agent_request_duration_seconds_bucket{le="0.01",operation="health"} 1200
hoody_agent_request_duration_seconds_bucket{le="+Inf",operation="health"} 1234
hoody_agent_request_duration_seconds_sum{operation="health"} 12.345
hoody_agent_request_duration_seconds_count{operation="health"} 1234
Terminal window
curl -X GET 'https://api.hoody.com/api/v1/agent/metrics'

Live-generated OpenAPI 3.1 document (JSON) with Hoody x-* extensions. Fully namespaced; no bare alias.

This endpoint takes no parameters.

{
"openapi": "3.1.0",
"info": {
"title": "Hoody Agent API",
"version": "1.2.3",
"description": "Hoody agent service API."
},
"servers": [
{
"url": "https://api.hoody.com",
"description": "Production"
}
],
"paths": {
"/api/v1/agent/health": {
"get": {
"summary": "Standardized health check.",
"operationId": "agent_healthCheck"
}
}
},
"components": {
"schemas": {},
"securitySchemes": {}
}
}
Terminal window
curl -X GET 'https://api.hoody.com/api/v1/agent/openapi.json'

Live-generated OpenAPI 3.1 document (YAML). info is pinned to the top. Fully namespaced; no bare alias.

This endpoint takes no parameters.

openapi: 3.1.0
info:
title: Hoody Agent API
version: 1.2.3
description: Hoody agent service API.
servers:
- url: https://api.hoody.com
description: Production
paths:
/api/v1/agent/health:
get:
summary: Standardized health check.
operationId: agent_healthCheck
components:
schemas: {}
securitySchemes: {}
Terminal window
curl -X GET 'https://api.hoody.com/api/v1/agent/openapi.yaml'