Overview
Updates a Nest thermostat’scloudregisterurl setting to point at this NLE server. After this call, the device will connect to this server on its next boot or reconnect.
This is the second step in the device setup flow, after using /api/scan-network to discover devices.
Endpoint
Request
First Attempt (no API key)
Retry With API Key (if first attempt returns 401)
| Field | Type | Required | Description |
|---|---|---|---|
ip | string | Yes | IP address of the Nest device to configure |
api_key | string | No | Device serial/API key, required if device demands auth |
Response
Success (200 OK)
Authentication Required (401)
"api_key": "{device_serial}" to authenticate.
Error (4xx/5xx)
| Status | Meaning |
|---|---|
401 | Device requires authentication — retry with api_key |
502 | Could not connect to the device |
What It Sets
The server sends a POST to the device’s local API (http://{ip}:8080/cgi-bin/api/settings) with:
cloudregisterurl, which is the URL it uses for all cloud communication.
Examples
Related
POST /api/scan-network
Discover devices on the network first
POST /api/register
Register a device after pointing it here