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
TenantCreateRequest is the message used for the request to create a tenant.

TenantCreateRequest is the message used for the request to create a tenant.

id
string

id is a unique identifier for the tenant.

name
string

name is the name of the tenant.

Response

200
application/json
A successful response.

TenantCreateResponse is the message returned from the request to create a tenant.

tenant
object

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