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

Browse hub

POST
/xmb.api.v1.LibraryService/BrowseHub

Lists one folder on a hub so a library path can be chosen. Requires the hub to be online.

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
Length1 <= length <= 128
hubUuid?string
Formatuuid
path?string

Folder to list, relative to the hub's media root. Empty lists the root.

Lengthlength <= 4096
pageSize?integer

Maximum entries to return. Zero applies the hub's default.

Formatint32
Range0 <= value <= 1000
pageToken?string

Continuation token from a previous response.

Lengthlength <= 4096
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.LibraryService/BrowseHub" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "entries": [
    "map[isDirectory:true name:Severance path:TV/Severance]",
    "map[isDirectory:true name:Slow Horses path:TV/Slow Horses]"
  ],
  "nextPageToken": "eyJhZnRlciI6IlRWL1Nsb3cgSG9yc2VzIn0"
}