Initiates the device code flow by creating a device code and user code.
This is the first step in the Device Code Flow (TV Flow) authentication process. The device should display the user code and QR code to the user, who will then authorize the device on their phone or computer using the TV Flow web application.
After receiving the device code, the device should poll the token endpoint
(/auth/device-codes/{deviceCode}/token) until authorization is complete.
Query Parameters:
size (optional): QR code size in pixels. Default: 300, Min: 100, Max: 1000.
TV clients may want larger QR codes (e.g., 600-800px) for better visibility.format (optional): Response format. Default: “json”. Options: “json” | “image”.
json: Returns JSON with authQRCode as a data URL (best for web clients).image: Returns binary PNG image directly (best for native TV clients).Documentation Index
Fetch the complete documentation index at: https://docs.discovr.media/llms.txt
Use this file to discover all available pages before exploring further.
QR code size in pixels. Larger sizes are recommended for TV displays.
100 <= x <= 1000Response format. Use "image" for native clients to receive binary PNG directly.
json, image The client ID of the third-party application. Identifies the application requesting device authorization.
"abc123xyz"
Device code created successfully. Response format depends on format query parameter.
Response when format=json (the default). With format=image the response
is a binary PNG instead.
Unique identifier for this authorization request. Used when polling.
"dvc_abc123xyz789"
Short user-friendly code to display. The user enters this on another device to authorize the sign-in.
^[0-9]{4}$"1234"
Base64 PNG QR code (data URL). Encodes the authorization URL +
userCode for easy scanning. Only present when format=json.
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
Device-code expiry, in milliseconds.
600000