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

# Get the organization hierarchy

`GET /v1/resourceowner/organization/hierarchy`

## Request

- Base URL: `https://api.automile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.automile.com/v1/resourceowner/organization/hierarchy`
- Auth: OAuth 2
  - Implicit: `https://api.automile.com/login/`

## 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.dev/automile/apis/automile-api.md) - [All operations](https://skmtc.dev/automile/apis/automile-api/llms.txt) - [OpenAPI document](https://skmtc.dev/automile/apis/automile-api/revisions/56b5b8d6d733?raw)
