# Tenants and test tenants

> What a tenant is, how a test tenant is kept apart from your live one, and what happens when either is suspended or leaves.

A tenant is your own set of palms at Bioprints. Everything your key does acts on your tenant alone: a person you enroll
is never seen, matched or refused by another tenant, and the same person enrolled by two tenants is two separate people.

## Your key decides the tenant

No call names a tenant. Bioprints reads the tenant from the key, so the key you send is the only thing that decides
whose palms a call reaches. A key belongs to one client on one tenant.

## Test tenants

Each live tenant can have a test tenant. It is a tenant of its own, with:

- **its own key**, starting `bpk_` like a live one;
- **its own gallery**, so a person enrolled there is never matched by your live tenant, and the other way round;
- **its own limits**, usually smaller than your live tenant's; `GET /palm/v1/status` shows them;
- **your live tenant's readers**, so the reader you sell with is the one you test with. A live tenant never uses a test
  tenant's readers.

Both run on `https://api.bioprints.io`. There is no separate server to switch to: going live means changing the key.

## Suspended tenants

If we suspend a tenant, every call with its key answers `403` `tenant_suspended` until we resume it. Nothing is deleted.
A test tenant keeps its own status, so suspending one tenant does not suspend the other.

## Leaving

When your tenant leaves, we remove every palm in your live tenant and in its test tenant, and revoke their keys. Each
removed hand is written to the [deletions list](https://docs.bioprints.io/how-to/read-the-deletions-list.md) with `requestedBy` set to `operator`.
Your revoked keys can no longer read that list, so we hand it over to you once the last palm is removed.

## See also

- [Galleries](https://docs.bioprints.io/concepts/galleries.md): how the palms inside one tenant are matched.
- [Readers](https://docs.bioprints.io/concepts/readers.md)

Source: https://docs.bioprints.io/concepts/tenants-and-test-tenants
