DELETE /v1/tenants/{product_slug} to deactivate it. Knock2 immediately stops processing events from the tenant’s tracking script and halts all visitor identification for that tenant. This is a soft delete — all historical data is retained, and reactivation is a self-service POST /v1/tenants/{product_slug}/activate call away.
is_product_slug_active is the master switch for the tenant’s entire /v1 API surface, not just identification — while deactivated, every /v1 route called with that tenant’s own key (including GET /v1/me) returns 402 Payment Required instead of its normal response.
This also runs in reverse for combined-billing children: if your own (parent) workspace is deactivated, every
billing_mode: "parent" child goes dark too, even though each child’s individual is_product_slug_active flag is untouched — nobody is paying for those children’s usage while the parent is off. billing_mode: "self" children are unaffected by the parent’s status. Reactivating the parent automatically restores every child that cascade turned off, with no separate per-child reactivation step.Endpoint
Path Parameter
string
required
The unique slug identifier of the sub-tenant to deactivate (e.g.
acme_corp). This is the same product_slug you specified when creating the tenant.Example Request
Response
A successful deactivation returns204 No Content with an empty response body.
What Deactivation Does
Deactivation is a soft delete. The following happens immediately:- The tenant’s tracking script stops recording new visitor sessions.
- Visitor identification and lead scoring are suspended.
- The tenant’s own API key starts getting
402 Payment Requiredon every/v1route — it is not revoked, so it resumes working immediately on reactivation with no re-issuing needed.
- All previously collected visitor data, identified contacts, and accounts are retained.
- The
product_slugis reserved for this domain under your account —POST /v1/tenantswith the samedomainreturns409, pointing at reactivation rather than letting you provision a fresh tenant in its place.
POST /v1/tenants/{product_slug}/activate with the same parent key — no need to contact support. This is the only way back for a deactivated tenant’s domain: because product_slug is deterministically derived from domain (KNO-1546), POST /v1/tenants permanently 409s for a domain that already has a (deactivated) tenant. To permanently delete a tenant’s data instead of reactivating it, contact Knock2 support.