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

Register hub

POST
/xmb.api.v1.HubService/RegisterHub

Registers a new media hub under the given server and allocates its tunnel block.

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

name?string

Display name for the hub.

Length1 <= length <= 128
serverSlug?string

Slug of the server the hub belongs to.

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

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.HubService/RegisterHub" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "hub": "map[createdAt:2026-03-14T18:02:11Z name:Living room NAS primaryIp:10.100.0.8 serverSlug:thompson-home status:HUB_STATUS_PENDING tunnelCidr:10.100.0.8/29 uuid:5f0c2a9e-8b1d-4c3a-9e2f-7a6b1c4d8e01]"
}