---
title: "Get a 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.

# Get a space

Path: CloudRaker Workspace API › Workspace Spaces

`GET /spaces/{spaceId}`

Fetches a single space by id. Authorization: requires `space:read` on the space; organization administrators bypass this check. A caller lacking the grant gets 404, not 403, so a space's existence is never leaked; a genuinely missing or archived space also returns 404. Success returns `{ space }` with `id`, `title`, `spaceType`, `createdAt`, `updatedAt`, and `createdBy`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

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

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The space.

#### Example

```json
{
  "space": {
    "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"
  }
}
```

- `space` (`getSpace.response.200.space`; object, required)
  - `id` (`getSpace.response.200.space.id`; string, required)
  - `title` (`getSpace.response.200.space.title`; string, required)
    - example `"Acme MSA"`
  - `spaceType` (`getSpace.response.200.space.spaceType`; string, required) — Identifier of the parent space type.
  - `createdAt` (`getSpace.response.200.space.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` (`getSpace.response.200.space.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` (`getSpace.response.200.space.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` (`getSpace.response.200.space.createdBy`; string, optional)

### 404

`not_found` — the space does not exist, is archived, or the caller lacks `space:read`.


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