---
title: "Get Tenant"
method: GET
path: "/v2/facts/{proj_id}/{env_id}/tenants/{tenant_id}"
tags: ["Tenants"]
---

# Get Tenant

`GET /v2/facts/{proj_id}/{env_id}/tenants/{tenant_id}`

## Request

- Base URL: `https://api.permit.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.permit.io/v2/facts/{proj_id}/{env_id}/tenants/{tenant_id}`
- Auth: HTTP bearer

Gets a tenant, if such tenant exists. Otherwise returns 404.

## Path parameters

- `tenant_id` string, required: Either the unique id of the tenant, or the URL-friendly key of the tenant (i.e: the "slug").
- `proj_id` string, required: Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
- `env_id` string, required: Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

## Response `200`

Successful Response

- TenantRead
  - `key` string, required: A unique id by which Permit will identify the tenant. The tenant key must be url-friendly (slugified).
  - `id` string, uuid, required: Unique id of the tenant
  - `organization_id` string, uuid, required: Unique id of the organization that the tenant belongs to.
  - `project_id` string, uuid, required: Unique id of the project that the tenant belongs to.
  - `environment_id` string, uuid, required: Unique id of the environment that the tenant belongs to.
  - `created_at` string, date-time, required: Date and time when the tenant was created (ISO_8601 format).
  - `updated_at` string, date-time, required: Date and time when the tenant was last updated/modified (ISO_8601 format).
  - `last_action_at` string, date-time, required: Date and time when the tenant was last active (ISO_8601 format). In other words, this is the last time a permission check was done on a resource belonging to this tenant.
  - `name` string, required: A descriptive name for the tenant
  - `description` string: an optional longer description of the tenant
  - `attributes` object: Arbitraty tenant attributes that will be used to enforce attribute-based access control policies.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/permit/apis/permit-io-api.md) - [All operations](https://skmtc.dev/permit/apis/permit-io-api/llms.txt) - [OpenAPI document](https://skmtc.dev/permit/apis/permit-io-api/revisions/fa0edf4238b3?raw)
