MATIH Platform is in active MVP development. Documentation reflects current implementation status.
7. Tenant Lifecycle
Overview

Tenant API Reference

The Tenant Service exposes REST APIs for the complete tenant lifecycle, including creation, provisioning, migration, branding, resource quotas, privacy, Helm release management, and deployment tracking. All endpoints are served on port 8082 under the /api/v1 prefix.


Base URL

https://:hostname/api/v1

Endpoint Groups

GroupBase PathDescription
Tenant Endpoints/api/v1/tenantsCRUD, tier upgrades, suspend/activate
Provisioning Endpoints/api/v1/tenants/:tenantId/provisioningStatus, retry, rollback, SSE streaming
Migration Endpoints/api/v1/tenants/:tenantId/migrationsRegion/cluster migration lifecycle
Branding Endpoints/api/v1/tenants/:tenantId/brandingLogo, colors, themes, custom CSS
Resource Endpoints/api/v1/tenants/:tenantId/quotasQuota management, usage tracking
Privacy Endpoints/api/v1/privacyData classification, sensitivity levels
Helm Endpoints/api/v1/helm/releasesHelm release lifecycle management
Deployment Endpoints/api/v1/platform/deploymentsPlatform version and deployment tracking

Common Headers

HeaderRequiredDescription
X-Tenant-IDSome endpointsUUID of the target tenant
X-User-IDSome endpointsUUID of the acting user (for audit)
Content-TypeAll POST/PUTAlways application/json

Pagination

Paginated endpoints use Spring Data parameters (page, size, sort). The sortBy and sortDir parameters are also supported on tenant listing endpoints.