# List access

> Each account and VM with its role in the tenant. API keys are not in it.

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

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

```python Python
import os

import requests

response = requests.get(
    "https://api.shako.dev/v1/tenants/acme/access",
    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/access", {
  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": [
    {
      "tenant": "acme",
      "kind": "vm",
      "name": "web1",
      "email": "maya@example.com",
      "role": "contributor"
    }
  ]
}
```

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 access object](https://shako.dev/api/objects/access-view.md).

The errors: https://shako.dev/api/errors.md. All the endpoints of Access: https://shako.dev/api/access.md.
