Skip to Content
Xeonr Developer Docs

Authorise a recording delivery

POST
/xmb.api.v1.TunerAgentService/AuthoriseRecordingDelivery

Mints an ingest grant and routes for a finished recording. Authenticated by the tuner token.

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

tunerToken?string
Length20 <= length
recordingUuid?string
Formatuuid
sizeBytes?string

The media file alone. Superseded by files, which carries the media file AND its sidecars; when files is set these two are ignored.

Formatint64
sha256?string
files?array<>

Every file the recording delivers: the .mkv and the .nfo beside it.

Itemsitems <= 8
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.TunerAgentService/AuthoriseRecordingDelivery" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "hubUuid": "5f0c2a7e-3b1d-4c8e-9a6f-2d4b7e1c9a30",
  "destinationPath": "/media/tv/Countryfile/Countryfile - S36E14 - Dorset.mkv",
  "ingestGrant": "eyJhbGciOiJFZERTQSIsImtpZCI6Im1lZGlhLTEifQ.eyJodWIiOiI1ZjBjMmE3ZSIsInBhdGgiOiIvbWVkaWEvdHYifQ.c2lnbmF0dXJlLW5vdC1yZWFs",
  "candidates": [
    "map[address:192.168.1.20:8443 rung:lan]",
    "map[address:relay-lon1.xmbsrv.com:443 rung:relay ticket:rt_EXAMPLE-not-a-real-ticket]"
  ],
  "retryAfter": "2026-10-25T19:10:00Z",
  "refusal": "the destination hub is not online",
  "files": [
    "map[destinationPath:/media/tv/Countryfile/Countryfile - S36E14 - Dorset.mkv ingestGrant:eyJhbGciOiJFZERTQSIsImtpZCI6Im1lZGlhLTEifQ.eyJodWIiOiI1ZjBjMmE3ZSIsInBhdGgiOiIvbWVkaWEvdHYifQ.c2lnbmF0dXJlLW5vdC1yZWFs kind:media]",
    "map[destinationPath:/media/tv/Countryfile/Countryfile - S36E14 - Dorset.nfo ingestGrant:eyJhbGciOiJFZERTQSIsImtpZCI6Im1lZGlhLTEifQ.eyJodWIiOiI1ZjBjMmE3ZSIsInBhdGgiOiIvbWVkaWEvdHYifQ.c2lnbmF0dXJlLW5vdC1yZWFs kind:nfo]"
  ]
}