# Relay Status

Checks whether a Verdalia Relay connection is usable.

Use this before Relay filesystem, Relay request, Relay Coding Agent, or Hue nodes when a workflow should branch on Relay availability.

## Configuration

| Field | Description |
|-------|-------------|
| `connection` | Verdalia Relay connection to check: pick one, or write a template such as `{{ input.connection_id }}` that resolves to a connection id from `input` on each run. The node fails, naming the template and what it resolved to, when the input has no value for it, the value is not a connection id, or no Verdalia Relay connection has that id. An offline relay is the output (`online: false`), not a failure. |

## Output

The `output` object includes:

| Field | Description |
|-------|-------------|
| `mode` | `static` or `dynamic`. |
| `online` | `true` when requests can be routed now. |
| `reason` | `unpaired`, `identity_revoked_or_missing`, `offline`, or `null`. |
| `relay_identity_id` | Dynamic Relay identity id, when paired. |
| `machine_id` | Paired machine id, when known. |
| `machine_label` | Human label for the paired machine, when set. |
| `capabilities` | Capabilities reported by the Relay. |
| `last_seen_at` | Last persisted heartbeat time. |
| `session_generation` | Active broker session generation when online. |
| `active_requests` | Number of active broker requests when online. |

Static Relay returns `online: true` because it has no broker session to inspect. Use a Relay Request node for a live HTTP reachability check.
