---
title: "List spaces"
---

> 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.

# List spaces

Path: CloudRaker Workspace API › Workspace Spaces

`GET /spaces`

Lists non-archived spaces across all space types. Authorization: any authenticated organization member. Organization administrators see every space; other members see only the spaces they hold `space:read` on. Archived spaces are excluded. No pagination — returns the full visible set. Each entry has `id` (uuid), `title`, `spaceType` (the parent space-type identifier), `createdAt`, `updatedAt`, and `createdBy`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/spaces';
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"

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

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

print(response.text)
```

## Responses

### 200

The non-archived spaces visible to the caller.

#### Example

```json
{
  "spaces": [
    {
      "id": "string",
      "title": "Acme MSA",
      "spaceType": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "expiresAt": "2019-08-24T14:15:22Z"
    }
  ]
}
```

- `spaces` (`listSpaces.response.200.spaces`; array<object>, required)
  - `id` (`listSpaces.response.200.spaces.id`; string, required)
  - `title` (`listSpaces.response.200.spaces.title`; string, required)
    - example `"Acme MSA"`
  - `spaceType` (`listSpaces.response.200.spaces.spaceType`; string, required) — Identifier of the parent space type.
  - `createdAt` (`listSpaces.response.200.spaces.createdAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `updatedAt` (`listSpaces.response.200.spaces.updatedAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `expiresAt` (`listSpaces.response.200.spaces.expiresAt`; any of, required) — Deadline of an API-managed (`/v1`) space, after which it is closed and its files deleted. `null` for a space created in the app, which never expires.
    - any of: `string`, `null`
  - `createdBy` (`listSpaces.response.200.spaces.createdBy`; string, optional)


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