Skip to Content
Xeonr Developer Docs
API Specificationxmb.api.v1.RoutingService

Report peer status

POST
/xmb.api.v1.RoutingService/ReportPeerStatus

Reports the gateway's observed WireGuard handshake state per hub. Service-to-service only.

Required scopes: xmb:internal:routing

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

peers?array<>

One entry per installed peer. Hubs absent from this shard's peer set are simply not mentioned; this is an observation, not desired state.

Itemsitems <= 5000
streamDomain?string

The zone this shard answers hub hostnames on — {hub-uuid}.{stream_domain}.

Reported rather than configured on both sides, because the gateway is the one that knows: it is the thing parsing the Host header, and a second copy in the API's environment is a second copy to get wrong. The API needs it to build the URLs it hands players, and until some shard has said so it cannot — which is a failed precondition with a sentence naming the fix, rather than a URL pointing somewhere that does not answer.

Every shard reports the same value; they share one public zone. An API-side override exists for the deployment where that stops being true.

Lengthlength <= 253
gatewayId?string

Stable identity of the reporting shard, so per-peer byte counters from different shards form separate series the platform can splice and then sum. The shard's hostname in practice; what matters is that it stays put across polls and differs between shards. Empty from a gateway too old to send counters, which also sends none.

Lengthlength <= 64
gatewayBootId?string

This process lifetime's identity — the counter-reset boundary for the byte counters above, exactly as a node's boot_id is for its announce.

Lengthlength <= 64
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.RoutingService/ReportPeerStatus" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{}