# Federation API<no value>

## Federation Status

```bash
GET /api/v1/federation/status
```

Returns the current state of the gossip mesh: connected peers, sync timestamps, instance counts.

**Example:**

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

## Export Instances (for Peers)

```bash
GET /api/v1/federation/instances
```

Returns the full instance directory in a format optimized for gossip consumption. This is the endpoint that peer relays call during sync.

## Push Instances

```bash
POST /api/v1/federation/instances/push
```

Receives a batch of instances from a peer relay. The relay merges new instances into its local directory.
