POST
/
v1
/
tenants
/
create
rr, err: = client.Tenancy.Create(context.Background(), &v1.TenantCreateRequest {
    Id: ""
    Name: ""
})
{
  "tenant": {
    "id": "<string>",
    "name": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Permify Multi Tenancy support you can create custom schemas for tenants and manage them in a single place. You can create a tenant with following API.

We have a pre-inserted tenant - t1 - by default for the ones that don’t use multi-tenancy.

Body

application/json
id
string

id is a unique identifier for the tenant.

name
string

name is the name of the tenant.

Response

200 - application/json
tenant
object

Tenant represents a tenant with an id, a name, and a timestamp indicating when it was created.