Auth API reference

Auth API · Consumer-Tenants

delete/{app_slug}/v1/tenants/{tenant_id}Auth

Delete a tenant. Cascades to tenant_membership rows; account rows are unaffected. PAK must hold auth.tenant.delete.

Path parameters

app_slug*string

Slug of the app.

tenant_id*string

Id of the tenant.

Response · 204

Deleted.

Example

Request

DELETE https://api.auth.productcraft.co/{app_slug}/v1/tenants/{tenant_id}
Authorization: Bearer YOUR_TOKEN