---
title: "GET /v2/spaces/hierarchy/"
method: GET
path: "/v2/spaces/hierarchy/"
tags: ["Spaces"]
---

# GET /v2/spaces/hierarchy/

`GET /v2/spaces/hierarchy/`

Return all spaces that user has purview over AND their ancestors

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

Success

## Other responses

- `403` — Forbidden - Access Denied
- `404` — Not Found

---

[API](https://skmtc.dev/density/apis/your-project-api.md) · [All operations](https://skmtc.dev/density/apis/your-project-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/density/your-project-api/revisions/eab10fe035e6/schema)
