# List secrets

> The secrets of the tenant. No endpoint gives a value back.

`GET /v1/tenants/{tenant}/secrets`

```bash curl
curl -X GET "https://api.shako.dev/v1/tenants/acme/secrets" \
  -H "Authorization: Bearer $SHAKO_API_KEY"
```

```python Python
import os

import requests

response = requests.get(
    "https://api.shako.dev/v1/tenants/acme/secrets",
    headers={"Authorization": f"Bearer {os.environ['SHAKO_API_KEY']}"},
)
response.raise_for_status()
print(response.json())
```

```javascript JavaScript
const response = await fetch("https://api.shako.dev/v1/tenants/acme/secrets", {
  method: "GET",
  headers: { Authorization: `Bearer ${process.env.SHAKO_API_KEY}` },
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
```

```json 200 (excerpt)
{
  "data": [
    {
      "name": "GH_TOKEN",
      "hosts": [
        "github.com",
        "api.github.com"
      ],
      "hint": "x9Qz",
      "updated": 1793491200
    }
  ]
}
```

Authenticate with `Authorization: Bearer <API key>` on `https://api.shako.dev`. Role: contributor or owner.

## Path parameters

**tenant** `string` *required*

The tenant's name, from GET /v1/tenants.

## Response

200 with {"data": [...]}: a list of [the secret object](https://shako.dev/api/objects/secret-view.md).

The errors: https://shako.dev/api/errors.md. All the endpoints of Secrets: https://shako.dev/api/secrets.md.
