---
title: "Who can see this space"
---

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

# Who can see this space

Path: CloudRaker Workspace API › Workspace Spaces

`GET /spaces/{spaceId}/participants`

Lists the people who can read the space, each marked `canWrite` (they hold `space:contribute`) with a display `role`, plus `viewerCanWrite` and `viewerCanShare` for the caller. Access inherited through a team is listed as the individual members who hold it. Authorization: requires `space:read`; a caller lacking it gets 404, so existence is never leaked. A desk (`me:…`) answers with its owner alone — who may always share their own thread — and is 404 for anyone else.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `spaceId` (`listSpaceParticipants.path.spaceId`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/spaces/<spaceId>/participants' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/spaces/<spaceId>/participants';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

### Python

```python
import requests

url = "https://api.cloudraker.com/spaces/<spaceId>/participants"

headers = {"Authorization": "Bearer <token>"}

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

print(response.text)
```

## Responses

### 200

The space’s participants.

#### Example

```json
{
  "participants": [
    {
      "kind": "member",
      "userId": "string",
      "groupId": "string",
      "name": "Ada Lovelace",
      "avatarUrl": "string",
      "memberCount": -9007199254740991,
      "role": "space-contributor",
      "canWrite": true
    }
  ],
  "viewerCanWrite": true,
  "viewerCanShare": true
}
```

- `participants` (`listSpaceParticipants.response.200.participants`; array<object>, required)
  - `kind` (`listSpaceParticipants.response.200.participants.kind`; string, required) — Always `member` today — group-derived access is listed as its individual members.
    - one of `"member"`, `"group"`
  - `name` (`listSpaceParticipants.response.200.participants.name`; string, required)
    - example `"Ada Lovelace"`
  - `role` (`listSpaceParticipants.response.200.participants.role`; string, required)
    - example `"space-contributor"`
  - `canWrite` (`listSpaceParticipants.response.200.participants.canWrite`; boolean, required)
  - `userId` (`listSpaceParticipants.response.200.participants.userId`; string, optional)
  - `groupId` (`listSpaceParticipants.response.200.participants.groupId`; string, optional)
  - `avatarUrl` (`listSpaceParticipants.response.200.participants.avatarUrl`; string, optional)
  - `memberCount` (`listSpaceParticipants.response.200.participants.memberCount`; integer, optional)
    - min -9007199254740991; max 9007199254740991
- `viewerCanWrite` (`listSpaceParticipants.response.200.viewerCanWrite`; boolean, required)
- `viewerCanShare` (`listSpaceParticipants.response.200.viewerCanShare`; boolean, required)

### 404

`not_found` — no such space, or the caller lacks `space:read`.


Source: https://docs.cloudraker.com/workspace/api/workspace-spaces/list-space-participants/index.md
