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

Begin Trakt device link

POST
/xmb.api.v1.TraktService/BeginTraktDeviceLink

Requests a device code from Trakt for the caller to authorise at the verification URL.

Required scopes: xmb:user:write

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?stringDeprecated

Ignored. The link is per account; kept, deprecated, so clients built before 2026-09 keep working. New clients leave it empty.

Lengthlength <= 128
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.TraktService/BeginTraktDeviceLink" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "userCode": "5A8F2C1D",
  "verificationUrl": "https://trakt.tv/activate",
  "expiresAt": "2026-10-22T09:40:00Z",
  "pollIntervalSeconds": "5"
}