Skip to main content
Returns a health record for every known agent, updated continuously from invocation history. Use this endpoint to check liveness and performance before routing traffic.

Response

Returns { "items": [AgentHealthRecord] }.
items
array
Array of AgentHealthRecord objects, one per known agent.

Example

curl http://your-node:8042/v1/health/agents

Example response

{
  "items": [
    {
      "agent_id": "stripe-agent",
      "provider_id": "acme-labs",
      "status": "online",
      "last_seen_at": "2025-01-15T10:30:02Z",
      "last_latency_ms": 312,
      "success_count": 482,
      "failure_count": 3,
      "success_rate": 0.9938,
      "updated_at": "2025-01-15T10:30:02Z"
    },
    {
      "agent_id": "legacy-agent",
      "provider_id": "old-corp",
      "status": "offline",
      "last_seen_at": "2025-01-10T06:00:00Z",
      "success_count": 10,
      "failure_count": 45,
      "success_rate": 0.1818,
      "updated_at": "2025-01-10T06:00:00Z"
    }
  ]
}