---
title: "listWorkspaces"
---

> Documentation Index
> Fetch the complete documentation index at: https://agenthold.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# listWorkspaces

Path: agenthold API › workspaces

`GET /workspaces`

URL: `/api/v1/workspaces`

## Authentication

Requires one of the following:

- `session`, apiKey, in cookie
- `token`, http bearer, header `Authorization`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/workspaces' \
  --cookie 'agenthold_session=<agenthold_session>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/workspaces';
const options = {
  method: 'GET',
  headers: {cookie: 'agenthold_session=<agenthold_session>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/workspaces"

headers = {"cookie": "agenthold_session=<agenthold_session>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Workspaces the user is a member of.

#### Example

```json
[
  {
    "id": "string",
    "name": "string",
    "personal": true,
    "role": "owner",
    "createdAt": "2019-08-24T14:15:22Z"
  }
]
```

- `id` (`listWorkspaces.response.200.id`; string, required)
- `name` (`listWorkspaces.response.200.name`; string, required)
- `personal` (`listWorkspaces.response.200.personal`; boolean, required)
- `role` (`listWorkspaces.response.200.role`; string, required)
  - one of `"owner"`, `"admin"`, `"member"`
- `createdAt` (`listWorkspaces.response.200.createdAt`; string, required)
  - format: `date-time`


Source: https://agenthold.dev/api/workspaces/list/index.md
