Aqara · Schema

SpacesResponse

Smart HomeIoTConsumer ElectronicsHome AutomationSecurity

Properties

Name Type Description
type string 消息类型。
version string 接口版本。
msgId string 消息 ID。
code integer 业务状态码,0 表示成功。
message string 提示信息。
data array
View JSON Schema on GitHub

JSON Schema

aqara-spaces-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aqara/json-schema/aqara-spaces-response-schema.json",
  "title": "SpacesResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiot-api-zh.yaml#/components/schemas/SpacesResponse",
  "allOf": [
    {
      "$ref": "#/$defs/BaseResponse"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SpaceNode"
          }
        }
      }
    }
  ],
  "$defs": {
    "BaseResponse": {
      "type": "object",
      "required": [
        "type",
        "version",
        "msgId",
        "code"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "消息类型。"
        },
        "version": {
          "type": "string",
          "description": "接口版本。"
        },
        "msgId": {
          "type": "string",
          "description": "消息 ID。"
        },
        "code": {
          "type": "integer",
          "description": "业务状态码,0 表示成功。"
        },
        "message": {
          "type": "string",
          "description": "提示信息。"
        }
      }
    },
    "SpaceNode": {
      "type": "object",
      "required": [
        "spaceId",
        "name"
      ],
      "properties": {
        "spaceId": {
          "type": "string",
          "description": "空间 ID。"
        },
        "parentSpaceId": {
          "type": [
            "string",
            "null"
          ],
          "description": "父空间 ID。"
        },
        "name": {
          "type": "string",
          "description": "空间名称。"
        },
        "spatialMarking": {
          "type": [
            "string",
            "null"
          ],
          "description": "空间标记。"
        },
        "children": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object",
            "properties": {
              "spaceId": {
                "type": "string",
                "description": "子空间 ID。"
              },
              "parentSpaceId": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "父空间 ID。"
              },
              "name": {
                "type": "string",
                "description": "子空间名称。"
              },
              "spatialMarking": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "子空间标记。"
              },
              "children": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "spaceId": {
                      "type": "string"
                    },
                    "parentSpaceId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "spatialMarking": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "description": "孙级及更深层子空间列表(结构同子空间节点,按此模式递归)。"
              }
            }
          },
          "description": "子空间列表(树结构)。"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/aqara-spaces-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.