Mint a telemetry token
Mints a short-lived Lantern ingest token for an app. Anonymous callers are allowed; a signed-in caller's user id, and the server they name, are baked into the token and stamped on every record.
Authorization
BearerAuth An access token issued by the xeonr identity provider.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
Which app is asking for a token. Becomes the service attribute on every
record, so a question about "the Apple TV app" has one filter to answer it.
"TELEMETRY_CLIENT_UNSPECIFIED" | "TELEMETRY_CLIENT_WEB" | "TELEMETRY_CLIENT_IOS" | "TELEMETRY_CLIENT_TVOS" | "TELEMETRY_CLIENT_ANDROID"The app's stable installation id — the same one playback sessions carry, which is what lets a session row and a device's trace name each other. Supplied by the caller because this RPC does not require a signed-in user: the errors most worth having are the ones before anyone signs in.
1 <= length <= 64Slug of the server the app is signed in to. Membership is checked and the slug is baked into the token, which is what lets that server's admins — and only them — read the records. Requires a signed-in caller. Empty mints an anonymous token whose records only the platform can read.
length <= 64Who the install is. Baked into the token so the Devices page can name a device without the device being trusted to name itself per record.
length <= 128length <= 128length <= 128length <= 128Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.TelemetryService/MintTelemetryToken" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"url": "https://in.lntrn.dev",
"token": "eyJhbGciOiJFZERTQSIsImtpZCI6InhtYi0xIn0.eyJleHAiOjE3NjExMjcwMDB9.c2lnbmF0dXJl",
"expiresIn": "3600s"
}Mint a telemetry read token POST
Mints a short-lived read-only Lantern token scoped to one server, and optionally to one install, node, task run or playback session on it. The admin UI queries Lantern directly with it. **Required scopes:** `xmb:admin`
xmb.api.v1.TraktService
TraktService makes and manages the link. The traffic the link exists for — scrobbles out, watches and positions back — happens server-side and has no method here.