# Devices

> A device, such as a laptop, reaches the private ports of the tenant through its WireGuard tunnel.

## Endpoints

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

## Objects

- [The device object](https://shako.dev/api/objects/device-view.md): A device of the private network.
- [The added device object](https://shako.dev/api/objects/device-added.md): What the device's WireGuard config needs.
