What you’ll learn
This guide walks through querying a building from scratch: authenticating, discovering what’s available, and exploring the building graph. By the end, you’ll understand the basic query patterns for working with building data.Prerequisites
- A Tacit API key (get one here)
- A building connected to your account
Step 1: Set up your environment
Step 2: Discover your buildings
Every query requires asiteId that scopes it to your site. You’ll find this in your Tacit dashboard. Then search by name, no need to know building IDs:
All root queries require
siteId. For brevity, remaining examples in this guide omit it, but it’s always required.Step 3: Explore the spatial hierarchy
See how the building is organized (wings, floors, and zones):Step 4: Find equipment by name or type
Search for equipment without knowing UUIDs:Cross-cutting: equipment in a location
Find VAVs in the Library without knowing any IDs:Step 5: Read points on equipment
Query the points (sensors, setpoints, commands) on a piece of equipment:Step 6: Trace equipment chains
A single query that shows an AHU, its sensors, and the downstream VAVs it feeds:Next steps
Find equipment by type
Master the class hierarchy with more examples.
Traverse equipment chains
Use upstream and downstream to trace dependencies.
