Skip to main content
Returns a health record for every known provider, aggregated from invocation history across all their agents. Use this endpoint to assess overall provider reliability.

Response

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

Example

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

Example response

{
  "items": [
    {
      "provider_id": "acme-labs",
      "status": "online",
      "last_seen_at": "2025-01-15T10:30:02Z",
      "last_latency_ms": 298,
      "success_count": 1204,
      "failure_count": 11,
      "success_rate": 0.9909,
      "updated_at": "2025-01-15T10:30:02Z"
    },
    {
      "provider_id": "beta-provider",
      "status": "degraded",
      "last_seen_at": "2025-01-15T09:45:00Z",
      "last_latency_ms": 4200,
      "success_count": 88,
      "failure_count": 32,
      "success_rate": 0.7333,
      "updated_at": "2025-01-15T09:45:00Z"
    }
  ]
}