---
title: "Get all members of a workspace"
---

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

Path: Channel Automation API › Workspaces

`GET /api/workspace-members/workspace/{workspaceId}`

## Authentication

- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Path parameters

- `workspaceId` (`get/api/workspace-members/workspace/workspaceId.path.workspaceId`; string, required) — Workspace ID

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.channelautomation.com/api/workspace-members/workspace/<workspaceId>' \
  --header 'X-API-Key: <X-API-Key>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspace-members/workspace/<workspaceId>';
const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};

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

### Python

```python
import requests

url = "https://api.channelautomation.com/api/workspace-members/workspace/<workspaceId>"

headers = {"X-API-Key": "<X-API-Key>"}

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

print(response.text)
```

## Responses

### 200

List of workspace members

#### Example

```json
{
  "success": true,
  "data": [
    {
      "user_id": "string",
      "role": "string",
      "email": "string",
      "name": "string",
      "joined_at": "2019-08-24T14:15:22Z"
    }
  ]
}
```

- `success` (`get/api/workspace-members/workspace/workspaceId.response.200.success`; boolean, optional)
- `data` (`get/api/workspace-members/workspace/workspaceId.response.200.data`; array<object>, optional)
  - `user_id` (`get/api/workspace-members/workspace/workspaceId.response.200.data.user_id`; string, optional)
  - `role` (`get/api/workspace-members/workspace/workspaceId.response.200.data.role`; string, optional)
  - `email` (`get/api/workspace-members/workspace/workspaceId.response.200.data.email`; string, optional)
  - `name` (`get/api/workspace-members/workspace/workspaceId.response.200.data.name`; string, optional)
  - `joined_at` (`get/api/workspace-members/workspace/workspaceId.response.200.data.joined_at`; string, optional)
    - format `date-time`

### 404

Workspace not found

### 500

Internal server error


Source: https://developer.channelautomations.com/api/get-api-workspace-members-workspace-workspace-id/index.md
