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

Poll Trakt device link

POST
/xmb.api.v1.TraktService/PollTraktDeviceLink

Reports the state of the pending device link, storing the connection once Trakt grants it.

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/PollTraktDeviceLink" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "state": "TRAKT_LINK_STATE_CONNECTED",
  "connection": "map[connectedAt:2026-10-22T09:31:05Z lastSyncedAt:2026-10-22T09:00:00Z needsReauth:false settings:map[pullProgress:true pullWatched:true scrobble:true] traktUsername:luke_t unmatchedTitleCount:0]"
}