---
title: "Get sub-tenants"
method: GET
path: "/resources/hierarchy/v1"
tags: ["Sub-Accounts"]
---

# Get sub-tenants

`GET /resources/hierarchy/v1`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/hierarchy/v1`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/hierarchy/v1/get.ts> (a function with typed inputs; its response is checked against the schema)

Get all sub-tenants from the hierarchy. A user token or vendor token are required for this route. A user token can be obtained after user authentication. A vendor token is required for this route, it can be obtained from the vendor authentication route.

## Headers

- `frontegg-tenant-id` string, required

## Response `200`

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
