API Overview
API Mutation
API Query
API Subscription
Webhooks
Hardware

Simple Query for Spaces and Points

Getting the basic structure through our GraphQL API is easy and useful. Find below a simple query example….

query {
spaces {
name
id
points {
name
id
mac
}
}
}

..which then returns…

{
"data": {
"spaces": [
{
"name": "Bathroom",
"id": "5fdbb9f8e6fa8e4ab609d35a",
"points": [
{
"name": "Toilet",
"id": "5fdbbaa042663551b01c3bb9",
"mac": "AB:CD:EF:GH:IJ:15"
},
{
"name": "SmartSensor",
"id": "5fdbbb6242663585461c3bbb",
"mac": "AB:CD:EF:GH:IJ:35"
}
]
},
{
"name": "Kitchen",
"id": "5fd1fb685a07a63d16b54a6c",
"points": [
{
"name": "KitchenCorner",
"id": "5fd1fb97a664fe25b45a255b",
"mac": "AB:CD:EF:GH:IJ:12"
},
{
"name": "KitchenBench",
"id": "5fd20034a664fe7a775a255d",
"mac": "AB:CD:EF:GH:IJ:13"
},
{
"name": "SmartSensor",
"id": "5fd31468a664fe9f0d5a2561",
"mac": "AB:CD:EF:GH:IJ:30"
}
]
},
{
"name": "LivingRoom",
"id": "5fd200f05a07a649fab54a6d",
"points": [
{
"name": "Sofa",
"id": "5fd2010ca664fe3dcb5a255e",
"mac": "AB:CD:EF:GH:IJ:14"
},
{
"name": "TV",
"id": "5fd3136aa664fe7b9b5a255f",
"mac": "AB:CD:EF:GH:IJ:20"
},
{
"name": "SmartSensor",
"id": "5fd31456a664fe5e7c5a2560",
"mac": "AB:CD:EF:GH:IJ:25"
}
]
}
]
}
}
astronaut

Ready to get started?