---
title: "GET /v2/{org_id}/spaces/{space_id}/hierarchy/"
method: GET
path: "/v2/{org_id}/spaces/{space_id}/hierarchy/"
tags: ["Spaces - By Org"]
---

# GET /v2/{org_id}/spaces/{space_id}/hierarchy/

`GET /v2/{org_id}/spaces/{space_id}/hierarchy/`

Return all spaces that user has purview over AND their ancestors
        using the space_id provided as the root space

## 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)
