# Tenants

> A tenant has its own VMs, credit and invoices. Each path of a VM names its tenant.

## Endpoints

| Method | Path | Returns |
|---|---|---|
| `GET` | [`/v1/tenants`](https://shako.dev/api/tenants/list.md) | 200 with {"data": [...]}: a list of the tenant object. |
| `POST` | [`/v1/tenants`](https://shako.dev/api/tenants/create.md) | 201 with the new tenant object. |
| `DELETE` | [`/v1/tenants/{name}`](https://shako.dev/api/tenants/delete.md) | 200 with the names of the path and "deleted": true. |

## Objects

- [The tenant object](https://shako.dev/api/objects/tenant-view.md): A tenant of the key, and the role of the key there.
- [The new tenant object](https://shako.dev/api/objects/tenant.md): A tenant that was created or deleted.
