---
title: "Get hierarchy"
method: GET
path: "/corporate/v1/hierarchies/{hierarchyId}"
tags: ["Hierarchies"]
---

# Get hierarchy

`GET /corporate/v1/hierarchies/{hierarchyId}`

## Request

- Base URL: `https://sandbox.pismolabs.io/passport`
- URL: `https://sandbox.pismolabs.io/passport/corporate/v1/hierarchies/{hierarchyId}`
- Auth: none declared

Retrieves a hierarchy by its ID.

## Path parameters

- `hierarchyId` string, required

## Response `200`

OK

- CreateHierarchiesResponse: Create hierarchy response object
  - `id` string, uuid, required: Hierarchy ID generated internally
  - `levels` object[], required
    - `id` string, required: Level ID generated internally
    - `index` integer, required: Hierarchy level index
    - `name` string, required: Hierarchy level name
    - `description` string: Hierarchy level description
  - `name` string: Hierarchy One

## Other responses

- `500`: Internal server error

---

[API](https://skmtc.dev/pismo/apis/platform-authentication.md) - [All operations](https://skmtc.dev/pismo/apis/platform-authentication/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/platform-authentication/revisions/935b62e16de4?raw)
