curl --request GET \
--url 'http://localhost:8000/health' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
{
"status": "pending",
"timestamp": "2026-08-31T14:22:05Z",
"version": "2026-08-01",
"uptime": 1.5,
"components": {}
}
Health Check
Check the health status of the API service and its components.
GET
/
health
curl --request GET \
--url 'http://localhost:8000/health' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
{
"status": "pending",
"timestamp": "2026-08-31T14:22:05Z",
"version": "2026-08-01",
"uptime": 1.5,
"components": {}
}
Check the health status of the API service and its components.
Response
RouterHealthResponse
string
required
Overall service status
string (date-time)
Response timestamp
string
required
API version
number
required
Service uptime in seconds
object
Component statuses keyed by component name
Status codes
| Code | Meaning |
|---|---|
200 | Service is healthy |
401 | Authentication required |
422 | Validation error |
429 | Rate limit exceeded |
503 | Service is unhealthy |
curl --request GET \
--url 'http://localhost:8000/health' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
{
"status": "pending",
"timestamp": "2026-08-31T14:22:05Z",
"version": "2026-08-01",
"uptime": 1.5,
"components": {}
}
Last modified on August 31, 2026