Skip to main content

Overview

The /devices endpoint returns a list of all thermostats you have access to, including devices you own and devices that have been shared with you.

Endpoint

Hosted service only. This endpoint is part of the hosted API at https://nolongerevil.com/api/v1 and requires an nle_ API key. It is not available on the self-hosted server.

Authentication

This endpoint requires API key authentication. Required Scopes: read Include your API key in the Authorization header:

Request

Headers

Query Parameters

None.

Response

Success Response (200 OK)

Response Fields

Error Responses

401 Unauthorized

Cause: Missing or invalid API key. Solution: Check that your API key is correct and included in the Authorization header.

429 Too Many Requests

Cause: You’ve exceeded the rate limit (20 requests/minute for API keys). Solution: Wait until the time specified in retryAfter before making another request.

Rate Limiting

Rate Limit Headers (included in response):

Code Examples

Use Cases

Home Automation Integration

List all your devices at startup to build a device registry:

Multi-Zone Control

Control devices in different zones:

Monitoring Dashboard

Build a dashboard showing all your thermostats:

Access Control

The devices returned depend on your API key’s permissions:
  1. No device restrictions: Returns all devices you own or have shared access to
  2. Specific device restrictions: Returns only devices specified in the API key’s serials array
Devices shared with you will have accessType: "shared". You may have limited permissions on shared devices depending on the sharing settings.

Next Steps

Get Device Status

Retrieve detailed device state and settings

Set Temperature

Control device temperature

Set Mode

Change HVAC mode (heat/cool/auto/off)

Authentication

Learn about API key management