Skip to main content
Version: 2.0.0

Get / GetByKey

Fetch the tenant and the tenant information.

Parameters

ctx - The context of the request.
tenantKey - The Key of the tenant.

Implementation

tenant, err := Permit.Api.Tenants.Get(ctx, "tenantKey")

GetById

Parameters

ctx - The context of the request.
tenantId - The id of the tenant. This can also be the tenant key.

Implementation

tenant, err := Permit.Api.Tenants.GetById(ctx, uuid.String())