HVAC
List HVAC devices
Get a paginated list of HVAC devices with their last pull state
GET
/
hvac
curl
curl --request GET \
--url 'https://api.amps.ai/hvac' \
--header 'x-api-key: amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx'const response = await fetch('https://api.amps.ai/hvac', {
method: 'GET',
headers: {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
},
});
const data = await response.json();import requests
url = 'https://api.amps.ai/hvac'
headers = {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
}
response = requests.get(url, headers=headers)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amps.ai/hvac",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.amps.ai/hvac"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.amps.ai/hvac")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amps.ai/hvac")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"id": "device_hvac_001",
"vendor": "example_vendor_a",
"sync": {
"available": true,
"lastPulledAt": "2026-05-07T09:23:45.000Z"
},
"metadata": {
"model": "Smart Thermostat 4",
"source": "live"
},
"state": {
"temperature": 21.5,
"active": true,
"heatSetpoint": 20,
"coolSetpoint": 24,
"holdType": "schedule",
"mode": "auto"
},
"commands": {
"heat": {
"parameters": {
"target": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled",
"windowed"
]
},
"cool": {
"parameters": {
"target": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled",
"windowed"
]
},
"idle": {
"parameters": {},
"execution": [
"immediate",
"scheduled"
]
},
"auto.maintain": {
"parameters": {
"heatSetpoint": {
"unit": "celsius",
"min": 10,
"max": 35
},
"coolSetpoint": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled"
]
},
"auto.schedule": {
"parameters": {},
"execution": [
"immediate"
]
}
},
"conflictStrategies": [
"cancel_and_replace"
],
"lastAction": {
"id": "action_hvac_def456",
"command": "heat",
"state": "completed",
"createdAt": "2026-05-07T08:15:00.000Z",
"updatedAt": "2026-05-07T08:18:00.000Z",
"links": {
"self": "/actions/action_hvac_def456"
}
},
"currentSchedule": null
},
{
"id": "device_hvac_002",
"vendor": "example_vendor_b",
"sync": {
"available": true,
"lastPulledAt": "2026-05-07T09:24:10.000Z"
},
"metadata": {
"model": "Smart Thermostat 3",
"source": "cache"
},
"state": {
"temperature": 23.8,
"active": false,
"heatSetpoint": 18,
"coolSetpoint": 22,
"holdType": "permanent",
"mode": "cool"
},
"commands": {
"heat": {
"parameters": {
"target": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled",
"windowed"
]
},
"cool": {
"parameters": {
"target": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled",
"windowed"
]
},
"idle": {
"parameters": {},
"execution": [
"immediate",
"scheduled"
]
},
"auto.maintain": {
"parameters": {
"heatSetpoint": {
"unit": "celsius",
"min": 10,
"max": 35
},
"coolSetpoint": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled"
]
},
"auto.schedule": {
"parameters": {},
"execution": [
"immediate"
]
}
},
"conflictStrategies": [
"cancel_and_replace"
],
"lastAction": {
"id": "action_hvac_mno345",
"command": "cool",
"state": "completed",
"createdAt": "2026-05-07T07:55:00.000Z",
"updatedAt": "2026-05-07T07:58:00.000Z",
"links": {
"self": "/actions/action_hvac_mno345"
}
},
"currentSchedule": null
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 2,
"hasMore": false
}
},
"meta": {
"requestId": "req_8a2Bf3kP",
"environment": "sandbox",
"timestamp": "2026-06-02T12:00:00.000Z",
"latencyMs": 12
}
}Authorizations
Query Parameters
Filter devices by userId
Example:
"user_abc123"
Number of devices to skip (default: 0)
Example:
0
Maximum number of devices to return (1-50, default: 10)
Example:
10
Response
HVAC devices retrieved successfully
Always true for success responses.
Show child attributes
Show child attributes
Metadata attached to every response: the request identifier, the serving environment, the build timestamp, and the server-side latency.
Show child attributes
Show child attributes
⌘I
curl
curl --request GET \
--url 'https://api.amps.ai/hvac' \
--header 'x-api-key: amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx'const response = await fetch('https://api.amps.ai/hvac', {
method: 'GET',
headers: {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
},
});
const data = await response.json();import requests
url = 'https://api.amps.ai/hvac'
headers = {
'x-api-key': 'amps_sk_test_xxxxxxxxxxxxxxxxxxxxxxxx',
}
response = requests.get(url, headers=headers)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.amps.ai/hvac",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.amps.ai/hvac"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.amps.ai/hvac")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amps.ai/hvac")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"id": "device_hvac_001",
"vendor": "example_vendor_a",
"sync": {
"available": true,
"lastPulledAt": "2026-05-07T09:23:45.000Z"
},
"metadata": {
"model": "Smart Thermostat 4",
"source": "live"
},
"state": {
"temperature": 21.5,
"active": true,
"heatSetpoint": 20,
"coolSetpoint": 24,
"holdType": "schedule",
"mode": "auto"
},
"commands": {
"heat": {
"parameters": {
"target": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled",
"windowed"
]
},
"cool": {
"parameters": {
"target": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled",
"windowed"
]
},
"idle": {
"parameters": {},
"execution": [
"immediate",
"scheduled"
]
},
"auto.maintain": {
"parameters": {
"heatSetpoint": {
"unit": "celsius",
"min": 10,
"max": 35
},
"coolSetpoint": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled"
]
},
"auto.schedule": {
"parameters": {},
"execution": [
"immediate"
]
}
},
"conflictStrategies": [
"cancel_and_replace"
],
"lastAction": {
"id": "action_hvac_def456",
"command": "heat",
"state": "completed",
"createdAt": "2026-05-07T08:15:00.000Z",
"updatedAt": "2026-05-07T08:18:00.000Z",
"links": {
"self": "/actions/action_hvac_def456"
}
},
"currentSchedule": null
},
{
"id": "device_hvac_002",
"vendor": "example_vendor_b",
"sync": {
"available": true,
"lastPulledAt": "2026-05-07T09:24:10.000Z"
},
"metadata": {
"model": "Smart Thermostat 3",
"source": "cache"
},
"state": {
"temperature": 23.8,
"active": false,
"heatSetpoint": 18,
"coolSetpoint": 22,
"holdType": "permanent",
"mode": "cool"
},
"commands": {
"heat": {
"parameters": {
"target": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled",
"windowed"
]
},
"cool": {
"parameters": {
"target": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled",
"windowed"
]
},
"idle": {
"parameters": {},
"execution": [
"immediate",
"scheduled"
]
},
"auto.maintain": {
"parameters": {
"heatSetpoint": {
"unit": "celsius",
"min": 10,
"max": 35
},
"coolSetpoint": {
"unit": "celsius",
"min": 10,
"max": 35
}
},
"execution": [
"immediate",
"scheduled"
]
},
"auto.schedule": {
"parameters": {},
"execution": [
"immediate"
]
}
},
"conflictStrategies": [
"cancel_and_replace"
],
"lastAction": {
"id": "action_hvac_mno345",
"command": "cool",
"state": "completed",
"createdAt": "2026-05-07T07:55:00.000Z",
"updatedAt": "2026-05-07T07:58:00.000Z",
"links": {
"self": "/actions/action_hvac_mno345"
}
},
"currentSchedule": null
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 2,
"hasMore": false
}
},
"meta": {
"requestId": "req_8a2Bf3kP",
"environment": "sandbox",
"timestamp": "2026-06-02T12:00:00.000Z",
"latencyMs": 12
}
}