# Imagi Labs Swarm Health Monitor

> Imagi Labs Swarm Health Monitor is a paid API for AI agents from relay.imagiolabs.com, paid per call via x402, $0.011/call, status unknown (last checked 2026-12-02).

Returns the 24-hour run rate and failure attribution broken down by agent for a monitored swarm.

## Facts

- Endpoint: GET https://relay.imagiolabs.com/swarm-health?utm_source=zero.xyz
- Price: $0.011/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/imagi-labs-swarm-health-monitor-f3b63e64
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KY6hwFA9VtutUNJQoP0Mm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability imagi-labs-swarm-health-monitor-f3b63e64
```

Example prompt: Can you pull the 24-hour swarm health report for me — I want to see the run rate and which specific agents are responsible for any failures?

## When to prefer this

Use this endpoint when you need a quick operational snapshot of an agent swarm's performance over the last 24 hours, specifically when you want per-agent failure attribution rather than aggregate-only stats. Prefer this over generic logging solutions when your swarm runs on the Imagi Labs relay infrastructure and you need a deterministic, structured health verdict without spinning up your own analytics pipeline.

## Known failure modes

- Swarm not found or unregistered — returns 404 or empty result
- No data available if swarm has not run tasks in the past 24 hours
- Authentication or payment failure (x402) — 402 response if USDC payment is not provided
- Partial data if some agents are offline or not reporting
- Stale metrics if the aggregation pipeline is delayed

## How this service works

Swarm health: 24h run rate + failure attribution by agent.

## Output

A structured report covering the 24-hour task run rate across the swarm, with failure counts and attribution data broken down per agent, enabling operators to identify which agents are underperforming or erroring.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "POST",
      "PUT",
      "PATCH",
      "DELETE"
     ],
     "type": "string"
    },
    "schema": {
     "type": "object"
    },
    "example": {
     "type": "object"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  },
  "description": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/imagi-labs-swarm-health-monitor-f3b63e64/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from relay.imagiolabs.com](https://www.zero.xyz/host/relay.imagiolabs.com/llms.txt)
