reachthingsDocs
EN
Dashboard
OverviewEndpoint & transport
On this page
TOOLscope: devices:read · idempotentHint

connect_device_account

Starts linking the owner's LG ThinQ account from the conversation. Returns a 6-digit PIN and a console link that shows the same sign-in as a QR code; the owner approves in the LG ThinQ app and you call again with session_id to finish. Only device list and status access is requested; control is something the owner turns on in the console. New appliances still have to be allowed for your agent by the owner. Available only when the server has LG ThinQ enabled.

Arguments

provider"lg"required

Only LG ThinQ supports in-chat linking today.

session_idstring

From a previous call. Waits briefly for the owner's approval, then finishes the connection.

countrystring

ISO 3166-1 alpha-2 country of the LG account. Default KR; must match the ThinQ app.

Returns: Link session

statusenum

waiting_for_app_approval finishing connected failed expired cancelled consumed not_found unavailable

session_id · pin_code · pin_expires_at · console_urlstring

Show the PIN and the link to the user while waiting. A new PIN appears on the console page when the old one expires.

instructionsstring

User-safe text: where in the ThinQ app to go and what to do next.

connection_id · devices_found · accessstring · integer · "read_only"

On connected. Devices are discovered but not yet allowed for this agent.

errorobject

On failed: code (for example LG_TERMS_NOT_AGREED) and a message the user can act on.

Request

REQUESTTypeScript ▾
await client.callTool({ name: "connect_device_account", arguments: { provider: "lg" } });
// … user approves in the LG ThinQ app …
await client.callTool({ name: "connect_device_account", arguments: { provider: "lg", session_id: "lglink_8f2k…" } });
RESPONSE · structuredContent
{
  "status": "waiting_for_app_approval",
  "provider": "lg",
  "session_id": "lglink_8f2k…",
  "pin_code": "482913",
  "pin_expires_at": "2026-11-09T12:01:00Z",
  "session_expires_at": "2026-11-09T12:05:00Z",
  "console_url": "https://connect.reachthings.com/app/connections/lg?region=global&session=lglink_8f2k…",
  "access": "read_only",
  "instructions": "Open the LG ThinQ app → Menu → App settings → ThinQ account sharing. Enter PIN 482913 or scan the QR code at …",
  "next_action": { "type": "call_again_with_session_id", "message": "After the user approves in the LG ThinQ app, call connect_device_account with this session_id to finish." }
}
The sign-in itself happens in LG's app; the agent never sees the LG account password or the issued token. Requesting control access is deliberately not possible from the tool.