---
title: "Get a space tree"
method: GET
path: "/spaces/{id}/tree"
tags: ["Spaces"]
---

# Get a space tree

`GET /spaces/{id}/tree`

Gets a space tree by ID

## Path parameters

- `id` string, uuid, required

## Response `200`

Space

- SpaceShowTreeResponse — Space tree structure with nested child spaces
  - `id` string, uuid, required — Space ID
  - `name` string, required — Space name
  - `spaces` object[], required — Child spaces
    - `id` string, uuid
    - `name` string
    - `spaces` unknown[]
      - unknown

## Other responses

- `401` — Unauthorized
- `404` — Not Found

---

[API](https://skmtc.net/contractbook/apis/contractbook-api.md) · [All operations](https://skmtc.net/contractbook/apis/contractbook-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/contractbook/contractbook-api/revisions/ae9d64e51a99/schema)
