---
title: "Get Hierarchy"
method: GET
path: "/models/{modelId}/hierarchy"
tags: ["Export API"]
---

# Get Hierarchy

`GET /models/{modelId}/hierarchy`

Returns the full member hierarchy for all dimensions in the specified data model, in either JSON or csv format

## Path parameters

- `modelId` string, required

## Headers

- `Accept` 'application/json' | 'text/csv' | '*/*'

## Response `200`

Successfully processed hierarchy request. Each object in the response represents a single member's position in the dimension hierarchy.

- HierarchyJsonResponse
  - `data` MemberPosition[], required
    - `dimension` string, required
    - `name` string, required
    - `alias` string, required
    - `parent` string, required
    - `operator` string, required
  - `metadata` HierarchyJsonResponseMetadata, required
    - `recordsReturned` integer, required

## Other responses

- `401` — Invalid authentication credentials
- `403` — Authenticated user does not have access to the specified model
- `404` — The model specified by "MODEL ID" is not found
- `406` — Invalid Accept header
- `429` — Too many requests, please try again later

---

[API](https://skmtc.dev/venasolutions/apis/vena-api.md) · [All operations](https://skmtc.dev/venasolutions/apis/vena-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/venasolutions/vena-api/revisions/09bc0482c405/schema)
