Skip to main content
Version: 2.0.0


Creates a new tenant.


tenant - An object that contains the information about the tenant. The payload is defined below.


key - A unique id by which Permit will identify the tenant. The tenant key must be url-friendly (slugified).
name - A descriptive name for the tenant.
description - optional - A longer description of the tenant.
attributes - optional - Arbitraty tenant attributes that will be used to enforce attribute-based access control policies.

key: "key",
name: "name",
description: "description",
attributes: {}


const response = await permit.api.createTenant(JSON.stringify(tenant));