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

Get hub token

POST
/xmb.api.v1.HubService/GetHubToken

Returns the hub's token for placing in the hub binary's configuration.

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

uuid?string

Public identifier of the hub.

Formatuuid
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/GetHubToken" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "hubToken": "xmbh_5f0c2a9e8b1d4c3a9e2f7a6b1c4d8e01_EXAMPLE-not-a-real-secret-0000000000000000"
}