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

Share hub

POST
/xmb.api.v1.HubService/ShareHub

Grants another server the use of this hub — streaming, library paths and its own grabber pairings. The caller must administer both servers. Machine-level administration stays with the home server.

Required scopes: xmb:admin

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

serverSlug?string

Slug of the hub's HOME server. Sharing is initiated from the home side.

Length1 <= length <= 128
uuid?string

Public identifier of the hub being shared.

Formatuuid
targetServerSlug?string

Slug of the server being granted use of the hub. The caller must be an administrator of BOTH servers — sharing grants nothing the caller could not have set up by registering a hub on the target themselves.

Length1 <= length <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.HubService/ShareHub" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "hub": "map[acceptedGrabberUuids:[c81e4b2a-3f5d-4a7c-b9e0-1d2f3a4b5c6d] agentVersion:214 canIngest:true canTranscode:true createdAt:2026-03-14T18:02:11Z internalAddresses:[192.168.1.40] lastHandshakeAt:2026-10-22T09:29:41Z lastSeenAt:2026-10-22T09:30:00Z name:Living room NAS observedEndpoint:203.0.113.24:51820 primaryIp:10.100.0.8 serverSlug:thompson-home sharedWithServerSlugs:[thompson-cottage] status:HUB_STATUS_ACTIVE tunnelCidr:10.100.0.8/29 uuid:5f0c2a9e-8b1d-4c3a-9e2f-7a6b1c4d8e01 wgListenPort:51820]"
}