---
title: "Resolve the organization's default 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.

# Resolve the organization's default space

Path: CloudRaker Workspace API › Workspace Spaces

`GET /organization/default-space`

Returns the organization's default-space id from the persisted per-org pointer, adopting the legacy literal-id space into the pointer on first read if needed. Read-only: it never creates a space and never designates an existing one. Returns 404 when the organization has no default space yet — even if it has other spaces — matching the "not ready" state `POST /onboarding/default-space` repairs. Authorization: any authenticated organization member.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The organization's default space id.

#### Example

```json
{
  "spaceId": "default"
}
```

- `spaceId` (`getOrganizationDefaultSpace.response.200.spaceId`; string, required)
  - example `"default"`

### 404

`no_default_space` — the organization has no default space yet.


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