# Secrets

> A secret, such as a GitHub token, that the VMs use but cannot read. Each VM gets the variable NAME=shako-secret-NAME, and Shako puts the value in its place in the requests to the secret's hosts.

## Endpoints

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

## Objects

- [The secret object](https://shako.dev/api/objects/secret-view.md): A secret, with no value.
