---
title: "Get tenants"
method: GET
path: "/resources/tenants/v2"
tags: ["Tenants (Accounts)"]
---

# Get tenants

`GET /resources/tenants/v2`

## Request

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

This route returns all roles for all tenants. To get a role for a specific tenant, send the tenant id in the **`frontegg-tenant-id`** header. Each role is an object containing the name, permissions, and other defining information.

## 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)
