Skip to main content

Dexwize Tenant Service

Tenant lifecycle, residency and privacy settings. Every request requires a bearer token issued by identity-service carrying tid (tenant), sub and role claims. Cross-tenant access returns 404, indistinguishable from a missing resource.

Version 1.0.0. Download the OpenAPI specification.

Authentication: bearer.

Operations​

MethodPathSummary
GET/v1/internal/tenant-regionsHosting region of every tenant for platform KPIs (operator-console only)
POST/v1/sandboxescreateSandboxTenant
DELETE/v1/sandboxes/{id}removeSandboxTenant
GET/v1/tenantsList tenants: platform scope sees all (audited operator path); a partner admin sees only its own customers
POST/v1/tenantsCreate a tenant
GET/v1/tenants/{id}Get a tenant visible to the caller
PUT/v1/tenants/{id}/autonomySet remediation autonomy for the tenant and per action category (tenant admin, own tenant only, audited)
PUT/v1/tenants/{id}/privacy-modeSet privacy mode (tenant admin, own tenant only)
GET/v1/tenants/{id}/sign-in-statusLifecycle status for identity-service sign-in checks (workload role tenant_status_reader only)
POST/v1/tenants/{id}/suspendSuspend a tenant (platform operator)
GET/v1/tenants/meThe caller's own tenant

GET /v1/internal/tenant-regions​

Hosting region of every tenant for platform KPIs (operator-console only)

Platform-level service token with the service-only role revenue_kpi_reader (operator-console, ADR-0050). The id, region and deployment model of each tenant; no names, partners or settings. Not routed through the gateway.

StatusDescriptionBody
200OKobject[]
403Not a platform-level service token with revenue_kpi_reader

POST /v1/sandboxes​

An expiring sandbox tenant for an Academy lab (service token with lab_provisioner only). Sandboxes are SaaS tenants on the academy-lab plan and must expire within seven days.

Request body: object (JSON).

StatusDescriptionBody
201Createdobject
400Invalid name or lifetime

DELETE /v1/sandboxes/{id}​

Suspends a sandbox tenant. Tenants on any other plan are never touched (404).

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
204Removed
404Not a sandbox

GET /v1/tenants​

List tenants: platform scope sees all (audited operator path); a partner admin sees only its own customers

ParameterInTypeRequiredDescription
statusquerystringno
partnerIdquerystringno
qquerystringnoCase-insensitive name contains (wildcards matched literally)
offsetqueryintegerno
limitqueryintegerno
StatusDescriptionBody
200OKobject
400Invalid filter
401Missing or invalid token
403Not a platform-scope operator or a partner admin with a partner claim

POST /v1/tenants​

Create a tenant

Platform operators may create any tenant; partner admins only under their own partner id.

Request body: CreateTenantRequest (JSON).

StatusDescriptionBody
201CreatedTenant
400Validation failed
401Missing or invalid token
403Caller may not create this tenant

GET /v1/tenants/{id}​

Get a tenant visible to the caller

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200OKTenant
401Missing or invalid token
404Not found or not visible to the caller

PUT /v1/tenants/{id}/autonomy​

Set remediation autonomy for the tenant and per action category (tenant admin, own tenant only, audited)

Each category level must be at most maxAutonomy. Air-gapped tenants cannot be Autonomous.

ParameterInTypeRequiredDescription
idpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200UpdatedTenant
400Unknown level, malformed category or a category above maxAutonomy
403Missing TenantManage
404Not found or not the caller's tenant

PUT /v1/tenants/{id}/privacy-mode​

Set privacy mode (tenant admin, own tenant only)

ParameterInTypeRequiredDescription
idpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200UpdatedTenant
403Missing privacy settings permission
404Not found or not the caller's tenant

GET /v1/tenants/{id}/sign-in-status​

Lifecycle status for identity-service sign-in checks (workload role tenant_status_reader only)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200OKobject
403Missing TenantStatusRead
404Unknown tenant

POST /v1/tenants/{id}/suspend​

Suspend a tenant (platform operator)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200SuspendedTenant
403Not a platform operator
404Not found
409Tenant is not active

GET /v1/tenants/me​

The caller's own tenant

StatusDescriptionBody
200OKTenant
401Missing or invalid token
403Missing tenant read permission