# Checking Mesh Health<no value>

## Federation Status Endpoint

```bash
curl https://relay.btoven.net/api/v1/federation/status
```

Example response:

```json
{
  "node_url": "https://relay.btoven.net",
  "peers": {
    "https://peer-a.example.com": {
      "last_sync": "2026-06-19T12:00:00Z",
      "instances_received": 15,
      "status": "ok"
    },
    "https://peer-b.example.com": {
      "last_sync": "2026-06-19T12:02:00Z",
      "instances_received": 8,
      "status": "ok"
    }
  },
  "total_instances": 42,
  "local_instances": 19,
  "federated_instances": 23
}
```

## What to Look For

- **Peers are listed** — if a peer is missing, check the configuration
- **Recent sync timestamps** — if a peer's last_sync is old, the sync might be failing
- **Instances received** — should increase over time as the mesh grows
- **Total vs federated** — shows how many instances came from peers vs added locally

## Common Issues

| Symptom | Likely Cause |
|---------|-------------|
| No peers in status | `--peers` not configured |
| Stale sync timestamps | Peer relay might be down |
| Zero instances received | Peer has no instances or sync failed |
| Duplicate instances | Merge logic is working correctly (deduped by URL) |
