Tenants & organizations
Admin CRUD for tenants — the B2B org boundary in Intry.
Overview
In Prisma and the admin API, a Tenant is the top-level property-management organization. Product docs may call this an “organization” or “company”; the REST path uses /api/admin/tenants.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/admin/tenants | List tenants |
POST | /api/admin/tenants | Create tenant |
GET | /api/admin/tenants/:id | Fetch one |
PUT | /api/admin/tenants/:id | Update |
DELETE | /api/admin/tenants/:id | Delete |
Important fields
| Field | Notes |
|---|---|
name | Display name |
type | Business classification string |
status | Defaults to active |
entitlements | JSON module flags; null = all enabled |
stripeCustomerId | Optional Stripe linkage |
billingPlan / billingStatus | Billing metadata |
Relations
A tenant owns properties, users, devices, and aggregated analytics rows. Deleting a tenant is destructive — confirm cascade rules in Prisma before automating.