---
title: "Get the organization hierarchy"
method: GET
path: "/v1/resourceowner/organization/hierarchy"
tags: ["ResourceOwnerOrganization"]
---

# Get the organization hierarchy

`GET /v1/resourceowner/organization/hierarchy`

## Response `200`

The organization hierarchy is returned

- OrganizationNodeModel[]
  - `OrganizationNodeId` integer
  - `Name` string
  - `ParentOrganizationNodeId` integer
  - `Children` OrganizationNodeModel[]
  - `HasChildren` boolean

## Other responses

- `403` — Request is forbidden, meaning you dont' have access to this contact
- `404` — Contact does not exist
- `500` — Internal server error

---

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